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:
@@ -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,
|
||||||
})),
|
})),
|
||||||
|
|||||||
Reference in New Issue
Block a user