chore: fix some dev mode console errors (#2924)

This commit is contained in:
Erez Rokah 2019-11-28 11:02:19 +02:00 committed by GitHub
parent d09c3addee
commit 4c5f013d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ const store = createStore(
reducer,
compose(
applyMiddleware(thunkMiddleware, waitUntilAction),
window.devToolsExtension ? window.devToolsExtension() : f => f,
window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f,
),
);

View File

@ -175,7 +175,7 @@ export default class Toolbar extends React.Component {
<DropdownItem
key={idx}
label={headingOptions[optionKey]}
className={selectionHasBlock(optionKey) && 'active'}
className={selectionHasBlock(optionKey) ? 'active' : undefined}
onClick={() => onBlockClick(undefined, optionKey)}
/>
),