Skip to content

Commit

Permalink
[Docs]: remove checked reset after page change for paged table example
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyManetov committed Nov 12, 2024
1 parent 8c45722 commit b73cda9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/docs/_examples/tables/PagedTable.example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ export default function PagedTable() {
const isFilterChanged = !isEqual(currentState.filter, updatedState.filter);
const isSearchChanged = currentState.search !== updatedState.search;
const isSortingChanged = !isEqual(currentState.sorting, updatedState.sorting);
const isPagingChanged = currentState.page !== updatedState.page || currentState.pageSize !== updatedState.pageSize;

if (isFilterChanged || isSearchChanged || isSortingChanged || isPagingChanged) {
if (isFilterChanged || isSearchChanged || isSortingChanged) {
return { ...updatedState, checked: [] };
}
return updatedState;
Expand Down

0 comments on commit b73cda9

Please sign in to comment.