fix bugs introduced by manual initialization
This commit is contained in:
parent
5e7d71c6e2
commit
3a0929304c
5
src/bootstrap.js
vendored
5
src/bootstrap.js
vendored
@ -13,7 +13,10 @@ import 'EditorWidgets';
|
||||
import 'MarkdownPlugins';
|
||||
import './index.css';
|
||||
|
||||
function bootstrap({ config }) {
|
||||
function bootstrap(opts = {}) {
|
||||
|
||||
const { config } = opts;
|
||||
|
||||
/**
|
||||
* Log the version number.
|
||||
*/
|
||||
|
@ -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 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user