mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(app): passing an initial table state overrides the default global filter state (#180)
This commit is contained in:
parent
219c9593e0
commit
d393529026
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue