diff --git a/src/app/file-viewer/file-viewer.component.ts b/src/app/file-viewer/file-viewer.component.ts index bd6ffd1..46c679e 100644 --- a/src/app/file-viewer/file-viewer.component.ts +++ b/src/app/file-viewer/file-viewer.component.ts @@ -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(); }