Skip to content

Commit

Permalink
(feat:grid) adjust code with ramda updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjazim Demirov authored and Kjazim Demirov committed Jul 14, 2023
1 parent 3a8c73e commit adcd85d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/data-grid/src/lib/store/data-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ const getSelectedRowIndexesIncludedInVisibleRows = (state: GridState) => {

const recalculateSelectedRowsIndexes = (state: GridState): GridState => R.mergeRight(state,{
selectedRowsIndexes: R.cond([
[R.propEq('allPagesSelected', true), getRowDataIndexes],
[R.propEq('currentPageSelected', true), getCurrentPageRowIndexes],
[R.propEq(true, 'allPagesSelected'), getRowDataIndexes],
[R.propEq(true, 'currentPageSelected'), getCurrentPageRowIndexes],
[R.T, getSelectedRowIndexesIncludedInVisibleRows]
])(state)
});
Expand Down

0 comments on commit adcd85d

Please sign in to comment.