Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
lauri865 committed Nov 28, 2024
1 parent 9d73eb7 commit dd1a1e1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export const paginationStateInitializer: GridStateInitializer<
const rowCount =
props.rowCount ??
props.initialState?.pagination?.rowCount ??
(props.paginationMode === 'client'
? gridFilteredTopLevelRowCountSelector({ current: { state } })
: undefined);
(props.paginationMode === 'client' ? state.rows?.totalRowCount : undefined);
const meta = props.paginationMeta ?? props.initialState?.pagination?.meta ?? {};
return {
...state,
Expand Down

0 comments on commit dd1a1e1

Please sign in to comment.