update integrations check to account for null default state

This commit is contained in:
Shawn Erquhart 2017-11-11 21:28:56 -05:00
parent a4ff229e37
commit 7c54fbd0df

View File

@ -250,7 +250,7 @@ class Backend {
/**
* Determine whether an asset store integration is in use.
*/
const hasAssetStore = !!selectIntegration(integrations, null, 'assetStore');
const hasAssetStore = integrations && !!selectIntegration(integrations, null, 'assetStore');
const updatedOptions = { ...options, hasAssetStore };
return this.implementation.persistEntry(entryObj, MediaFiles, {