Skip to content

Commit

Permalink
fix(app): passing an initial table state overrides the default global…
Browse files Browse the repository at this point in the history
… filter state (#180)
  • Loading branch information
xAt0mZ authored Nov 29, 2024
1 parent 219c959 commit d393529
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/react/components/datatables/Datatable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,13 @@ export function Datatable<D extends DefaultType>({
pageIndex: page || 0,
},
sorting: settings.sortBy ? [settings.sortBy] : [],

...initialTableState,

globalFilter: {
search: settings.search,
...initialTableState.globalFilter,
},

...initialTableState,
},
defaultColumn: {
enableColumnFilter: false,
Expand Down

0 comments on commit d393529

Please sign in to comment.