From 3ad898aaabbeb313f32ecd3abd0c881fecf5ee5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 9 Mar 2026 17:10:17 +0800 Subject: [PATCH] Add null coalescing for facets and attributes access in MoreModal Co-Authored-By: Claude Opus 4.6 --- src/components/Discover/Conformance/MoreModal.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Discover/Conformance/MoreModal.vue b/src/components/Discover/Conformance/MoreModal.vue index 0cc4ccd..2efbe2b 100644 --- a/src/components/Discover/Conformance/MoreModal.vue +++ b/src/components/Discover/Conformance/MoreModal.vue @@ -214,11 +214,11 @@ const columnData = computed(() => { { field: "id", header: "Case Id" }, { field: "started_at", header: "Start time" }, { field: "completed_at", header: "End time" }, - ...data[0].facets.map((fac, index) => ({ + ...(data[0].facets ?? []).map((fac, index) => ({ field: `fac_${index}`, header: facetName(fac.name), })), - ...data[0].attributes.map((att, index) => ({ + ...(data[0].attributes ?? []).map((att, index) => ({ field: `att_${index}`, header: att.key, })),