Add null coalescing for facets and attributes access in MoreModal

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 17:10:17 +08:00
parent d546cc9619
commit 3ad898aaab

View File

@@ -214,11 +214,11 @@ const columnData = computed(() => {
{ field: "id", header: "Case Id" }, { field: "id", header: "Case Id" },
{ field: "started_at", header: "Start time" }, { field: "started_at", header: "Start time" },
{ field: "completed_at", header: "End time" }, { field: "completed_at", header: "End time" },
...data[0].facets.map((fac, index) => ({ ...(data[0].facets ?? []).map((fac, index) => ({
field: `fac_${index}`, field: `fac_${index}`,
header: facetName(fac.name), header: facetName(fac.name),
})), })),
...data[0].attributes.map((att, index) => ({ ...(data[0].attributes ?? []).map((att, index) => ({
field: `att_${index}`, field: `att_${index}`,
header: att.key, header: att.key,
})), })),