mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Fix lint errors
This commit is contained in:
parent
943999f431
commit
f0b92cb8be
2 changed files with 6 additions and 7 deletions
|
|
@ -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});
|
||||
|
|
|
|||
|
|
@ -2,12 +2,10 @@ import {createSelector} from 'reselect';
|
|||
import {HyperState} from './hyper';
|
||||
|
||||
const getTermGroups = ({termGroups}: Pick<HyperState, 'termGroups'>) => 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue