From 7c54fbd0df51fef1de920f261373cd6780ef18ff Mon Sep 17 00:00:00 2001 From: Shawn Erquhart Date: Sat, 11 Nov 2017 21:28:56 -0500 Subject: [PATCH] update integrations check to account for null default state --- src/backends/backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/backend.js b/src/backends/backend.js index d1615473..4b73307d 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, {