From f0b92cb8be94680b4d44c03cad1922e80787dece Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Wed, 20 Nov 2019 18:57:56 +0530 Subject: [PATCH] Fix lint errors --- lib/reducers/ui.ts | 3 ++- lib/selectors.ts | 10 ++++------ 2 files changed, 6 insertions(+), 7 deletions(-) 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;