Browse Source
Merge pull request #667 from meriadec/fix-storybook
Prevent storybook from crashing
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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) { |
|
|
|