Skip to content

Commit 6b90e57

Browse files
committed
fix bugs introduced by manual initialization
1 parent 5e7d71c commit 6b90e57

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/bootstrap.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ import 'EditorWidgets';
1313
import 'MarkdownPlugins';
1414
import './index.css';
1515

16-
function bootstrap({ config }) {
16+
function bootstrap(opts = {}) {
17+
18+
const { config } = opts;
19+
1720
/**
1821
* Log the version number.
1922
*/

src/reducers/integrations.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CONFIG_SUCCESS } from 'Actions/config';
44
const integrations = (state = null, action) => {
55
switch (action.type) {
66
case CONFIG_SUCCESS:
7-
const integrations = action.payload.get('integrations').toJS() || [];
7+
const integrations = action.payload.get('integrations', List()).toJS() || [];
88
const newState = integrations.reduce((acc, integration) => {
99
const { hooks, collections, provider, ...providerData } = integration;
1010
acc.providers[provider] = { ...providerData };

0 commit comments

Comments
 (0)