Skip to content

Commit

Permalink
fix bugs introduced by manual initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Mar 6, 2018
1 parent 5e7d71c commit 6b90e57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import 'EditorWidgets';
import 'MarkdownPlugins';
import './index.css';

function bootstrap({ config }) {
function bootstrap(opts = {}) {

const { config } = opts;

/**
* Log the version number.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/integrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 6b90e57

Please sign in to comment.