Skip to content

Commit

Permalink
fix bug introduced from last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AstridKery committed Nov 18, 2024
1 parent 6e47ee1 commit 6f3cc64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/History/HistoryTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
});
Expand Down Expand Up @@ -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: () => (
<OverlayTrigger
Expand Down

0 comments on commit 6f3cc64

Please sign in to comment.