From 166694210dd53bedc353a3cba3c5dcd71be3fa73 Mon Sep 17 00:00:00 2001 From: reid holmes Date: Tue, 30 Apr 2024 13:27:57 -0700 Subject: [PATCH] offsets --- packages/portal/frontend/src/app/util/SortableTable.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/portal/frontend/src/app/util/SortableTable.ts b/packages/portal/frontend/src/app/util/SortableTable.ts index 5cd3713f8..870c062be 100644 --- a/packages/portal/frontend/src/app/util/SortableTable.ts +++ b/packages/portal/frontend/src/app/util/SortableTable.ts @@ -344,7 +344,9 @@ export class SortableTable { if (colsWithMetadata.indexOf(j) >= 0) { if (i === 0) { // header row - row.push(cols[j] + "_metadata"); // add metadata prior column name + // add metadata prior column name + // strange math because we may have added columns to the left + row.push(row[j + colsWithMetadata.indexOf(j)] + "_metadata"); } else { // regular row row.push(this.extractMetadata(cols[j] as HTMLElement));