diff --git a/lib/reducers/ui.ts b/lib/reducers/ui.ts index 97564753..baf5f309 100644 --- a/lib/reducers/ui.ts +++ b/lib/reducers/ui.ts @@ -432,7 +432,8 @@ const reducer = (state = initial, action: any) => { if ( typeof state.cols !== 'undefined' && state.cols !== null && - (typeof state.rows !== 'undefined' && state.rows !== null) && + typeof state.rows !== 'undefined' && + state.rows !== null && (state.rows !== state_.rows || state.cols !== state_.cols) ) { state_ = state_.merge({notifications: {resize: true}}, {deep: true}); diff --git a/lib/selectors.ts b/lib/selectors.ts index 876734eb..ead85aa1 100644 --- a/lib/selectors.ts +++ b/lib/selectors.ts @@ -2,12 +2,10 @@ import {createSelector} from 'reselect'; import {HyperState} from './hyper'; const getTermGroups = ({termGroups}: Pick) => termGroups.termGroups; -const getRootGroups = createSelector( - getTermGroups, - termGroups => - Object.keys(termGroups) - .map(uid => termGroups[uid]) - .filter(({parentUid}) => !parentUid) +const getRootGroups = createSelector(getTermGroups, termGroups => + Object.keys(termGroups) + .map(uid => termGroups[uid]) + .filter(({parentUid}) => !parentUid) ); export default getRootGroups;