From 6f3cc64cacc2942896c0b54486768f9f72f4338c Mon Sep 17 00:00:00 2001 From: Caroline Kery Date: Mon, 18 Nov 2024 10:37:17 -0500 Subject: [PATCH] fix bug introduced from last fix --- frontend/src/components/History/HistoryTable.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/History/HistoryTable.jsx b/frontend/src/components/History/HistoryTable.jsx index 0e3dc101..23f04230 100644 --- a/frontend/src/components/History/HistoryTable.jsx +++ b/frontend/src/components/History/HistoryTable.jsx @@ -115,8 +115,8 @@ const HistoryTable = () => { const metadataColumnsAccessorKeys = []; if (historyData) { historyData.data.forEach((data) => { - if (data.formattedMetadata) - Object.keys(data.formattedMetadata).forEach((metadataColumn) => + if (data.metadata) + Object.keys(data.metadata).forEach((metadataColumn) => !metadataColumnsAccessorKeys.includes(metadataColumn) ? metadataColumnsAccessorKeys.push(metadataColumn) : null ); }); @@ -176,7 +176,7 @@ const HistoryTable = () => { const table = useReactTable({ columns: [...defaultColumns.first, ...metadataColumnsAccessorKeys.map((column) => { return { - accessorKey: `formattedMetadata.${column}`, + accessorKey: `metadata.${column}`, filterFn: "includesString", header: () => (