Browse Source

Merge pull request #667 from meriadec/fix-storybook

Prevent storybook from crashing
master
Gaëtan Renaudeau 7 years ago
committed by GitHub
parent
commit
cb9cdb4d4f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/renderer/createStore.js

2
src/renderer/createStore.js

@ -20,7 +20,7 @@ export default ({ state, history, dbMiddleware }: Props) => {
history = createHistory()
}
const middlewares = [routerMiddleware(history), thunk, logger]
if (!__STORYBOOK_ENV__) {
if (!process.env.STORYBOOK_ENV) {
middlewares.push(require('middlewares/sentry').default)
}
if (dbMiddleware) {

Loading…
Cancel
Save