diff --git a/src/bootstrap.js b/src/bootstrap.js index 1061ec4274eb..2036d5c7d675 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -13,7 +13,10 @@ import 'EditorWidgets'; import 'MarkdownPlugins'; import './index.css'; -function bootstrap({ config }) { +function bootstrap(opts = {}) { + + const { config } = opts; + /** * Log the version number. */ diff --git a/src/reducers/integrations.js b/src/reducers/integrations.js index 0b35e3f3bc76..58cc27e1597d 100644 --- a/src/reducers/integrations.js +++ b/src/reducers/integrations.js @@ -4,7 +4,7 @@ import { CONFIG_SUCCESS } from 'Actions/config'; const integrations = (state = null, action) => { switch (action.type) { case CONFIG_SUCCESS: - const integrations = action.payload.get('integrations').toJS() || []; + const integrations = action.payload.get('integrations', List()).toJS() || []; const newState = integrations.reduce((acc, integration) => { const { hooks, collections, provider, ...providerData } = integration; acc.providers[provider] = { ...providerData };