From 08518c7c332d3957f75f8bb3f36ccaacd8c7f544 Mon Sep 17 00:00:00 2001 From: HeungTak Lee Date: Fri, 30 Jan 2026 13:27:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20initialKindCounts=20=EC=84=A0=EC=96=B8?= =?UTF-8?q?=20=EC=88=9C=EC=84=9C=20=EC=88=98=EC=A0=95=20(TDZ=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit countRegistry가 initialKindCounts보다 먼저 선언되어 발생한 ReferenceError 수정. initialKindCounts를 countRegistry 위로 이동. Co-Authored-By: Claude Opus 4.5 --- src/stores/shipStore.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/stores/shipStore.js b/src/stores/shipStore.js index 6c418046..ada44a08 100644 --- a/src/stores/shipStore.js +++ b/src/stores/shipStore.js @@ -98,6 +98,20 @@ function isAnyEquipmentActive(ship) { // ===================== const TIMEOUT_CHECK_INTERVAL_MS = 5000; // 5초 +/** + * 초기 선박 종류별 카운트 + */ +const initialKindCounts = { + [SIGNAL_KIND_CODE_FISHING]: 0, + [SIGNAL_KIND_CODE_KCGV]: 0, + [SIGNAL_KIND_CODE_PASSENGER]: 0, + [SIGNAL_KIND_CODE_CARGO]: 0, + [SIGNAL_KIND_CODE_TANKER]: 0, + [SIGNAL_KIND_CODE_GOV]: 0, + [SIGNAL_KIND_CODE_NORMAL]: 0, + [SIGNAL_KIND_CODE_BUOY]: 0, +}; + // ===================== // Incremental 카운트 레지스트리 (스토어 외부) // ===================== @@ -239,20 +253,6 @@ function fullRecount(features, darkSignalIds, isIntegrate, kindVisibility, sourc recalcTotal(); } -/** - * 초기 선박 종류별 카운트 - */ -const initialKindCounts = { - [SIGNAL_KIND_CODE_FISHING]: 0, - [SIGNAL_KIND_CODE_KCGV]: 0, - [SIGNAL_KIND_CODE_PASSENGER]: 0, - [SIGNAL_KIND_CODE_CARGO]: 0, - [SIGNAL_KIND_CODE_TANKER]: 0, - [SIGNAL_KIND_CODE_GOV]: 0, - [SIGNAL_KIND_CODE_NORMAL]: 0, - [SIGNAL_KIND_CODE_BUOY]: 0, -}; - /** * 초기 선박 종류별 표시 설정 */