Skip to content

Commit

Permalink
update integrations check to account for null default state
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Nov 12, 2017
1 parent a4ff229 commit 7c54fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 7c54fbd

Please sign in to comment.