Skip to content

Commit

Permalink
Merge pull request #369 from RTIInternational/fix_history_col_metadata
Browse files Browse the repository at this point in the history
fix bug introduced from last fix
  • Loading branch information
AstridKery authored Nov 18, 2024
2 parents 995f140 + 6f3cc64 commit 8dd7be5
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 8dd7be5

Please sign in to comment.