Persist "inversed" table filter
Summary: Persist "inversed" filtering between sessions Reviewed By: antonk52 Differential Revision: D35113051 fbshipit-source-id: 466d94c7041e44398b5bd89ed9560c7d026ab2fd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
011c5eeafa
commit
88b72043b4
@@ -37,7 +37,10 @@ type PersistedState = {
|
||||
/** The currently applicable sorting, if any */
|
||||
sorting: Sorting | undefined;
|
||||
/** The default columns, but normalized */
|
||||
columns: Pick<DataTableColumn, 'key' | 'width' | 'filters' | 'visible'>[];
|
||||
columns: Pick<
|
||||
DataTableColumn,
|
||||
'key' | 'width' | 'filters' | 'visible' | 'inversed'
|
||||
>[];
|
||||
scrollOffset: number;
|
||||
autoScroll: boolean;
|
||||
selectedSearchRecord: any;
|
||||
@@ -471,6 +474,7 @@ export function savePreferences(
|
||||
width: c.width,
|
||||
filters: c.filters,
|
||||
visible: c.visible,
|
||||
inversed: c.inversed,
|
||||
})),
|
||||
scrollOffset,
|
||||
autoScroll: state.autoScroll,
|
||||
|
||||
Reference in New Issue
Block a user