diff --git a/src/backends/backend.js b/src/backends/backend.js index d16154738991..4b73307dbabf 100644 --- a/src/backends/backend.js +++ b/src/backends/backend.js @@ -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, {