From b3e5554133cf3990eea384b0d79da5f3d34e6318 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:13 +0800 Subject: [PATCH] Add optional chaining for response.data.log.id access in getFilterDetail Co-Authored-By: Claude Opus 4.6 --- src/stores/allMapData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/allMapData.ts b/src/stores/allMapData.ts index 0cf0e26..d7d5093 100644 --- a/src/stores/allMapData.ts +++ b/src/stores/allMapData.ts @@ -368,9 +368,9 @@ export const useAllMapDataStore = defineStore("allMapDataStore", { try { const response = await apiClient.get(api); this.temporaryData = response.data.rules; - this.logId = response.data.log.id; + this.logId = response.data.log?.id; this.filterName = response.data.name; - this.baseLogId = response.data.log.id; + this.baseLogId = response.data.log?.id; } catch (error) { apiError(error, "Failed to get Filter Detail."); }