From 4dbed9fe569fc8d6efe110e315e3931269d9620f 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 14:10:08 +0800 Subject: [PATCH] Fix .trim() on null in conformance cases getter and add fallback returns Co-Authored-By: Claude Opus 4.6 --- src/stores/conformance.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/conformance.ts b/src/stores/conformance.ts index 4632eb2..c105fc3 100644 --- a/src/stores/conformance.ts +++ b/src/stores/conformance.ts @@ -182,7 +182,7 @@ export const useConformanceStore = defineStore("conformanceStore", { ? abbreviateNumber(new Decimal(v.toFixed(2))) : null, ); - copy.value = copy.value.map((v) => v.trim()).join(", "); + copy.value = copy.value.map((v) => (v ?? "").trim()).join(", "); break; default: break; @@ -218,6 +218,7 @@ export const useConformanceStore = defineStore("conformanceStore", { }; }); } + return []; }, loopTraces: (state) => { return state.allLoopTraces; @@ -256,6 +257,7 @@ export const useConformanceStore = defineStore("conformanceStore", { }; }); } + return []; }, }, actions: {