update integrations check to account for null default state
This commit is contained in:
@ -250,7 +250,7 @@ class Backend {
|
|||||||
/**
|
/**
|
||||||
* Determine whether an asset store integration is in use.
|
* 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 };
|
const updatedOptions = { ...options, hasAssetStore };
|
||||||
|
|
||||||
return this.implementation.persistEntry(entryObj, MediaFiles, {
|
return this.implementation.persistEntry(entryObj, MediaFiles, {
|
||||||
|
Reference in New Issue
Block a user