diff --git a/projects/data-grid/src/lib/store/data-grid.ts b/projects/data-grid/src/lib/store/data-grid.ts index 80f3d0a..e9ab002 100644 --- a/projects/data-grid/src/lib/store/data-grid.ts +++ b/projects/data-grid/src/lib/store/data-grid.ts @@ -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) });