diff --git a/frontend/src/lib/components/ModelTable/ModelTable.svelte b/frontend/src/lib/components/ModelTable/ModelTable.svelte index d0db8a120..a1c3942d7 100644 --- a/frontend/src/lib/components/ModelTable/ModelTable.svelte +++ b/frontend/src/lib/components/ModelTable/ModelTable.svelte @@ -109,6 +109,7 @@ import Th from './Th.svelte'; import ThFilter from './ThFilter.svelte'; import { formatDateOrDateTime } from '$lib/utils/datetime'; + $: data = source.body.map((item: Record, index: number) => { return { ...item, meta: source.meta ? { ...source.meta[index] } : undefined }; }); @@ -180,7 +181,7 @@ {#each $rows as row, rowIndex} - {@const meta = source.meta ? source.meta[rowIndex] : source.body[rowIndex]} + {@const meta = row.meta ? row.meta : row}