Clear table state upon changing tabs
All checks were successful
build / build (push) Successful in 2m55s
All checks were successful
build / build (push) Successful in 2m55s
This commit is contained in:
@@ -303,9 +303,10 @@ export class FileViewerComponent {
|
||||
});
|
||||
this.currentValue.set(newValue);
|
||||
}
|
||||
// TODO: Replace this with previous state once persistence is implemented
|
||||
// TODO: Replace this with previous state once persistence is implemented (should be per tab at the very least)
|
||||
const table = this.table();
|
||||
if (table) {
|
||||
this.clear(table);
|
||||
table.multiSortMeta = [{ field: this.columns()[0].name, order: 1 }];
|
||||
table.sortMultiple();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user