Clear table state upon changing tabs
All checks were successful
build / build (push) Successful in 2m55s

This commit is contained in:
2025-07-05 09:17:48 +09:30
parent 1cc0585015
commit e9c8517899

View File

@@ -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();
}