From dd95c36b0846d71933cf1db10595a1d6479d8af3 Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Tue, 11 Feb 2025 10:53:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20plan=20=EB=A7=B5=ED=95=91=20=EC=A1=B0?= =?UTF-8?q?=EA=B1=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/usePlan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/usePlan.js b/src/hooks/usePlan.js index 9db69642..7d9bc925 100644 --- a/src/hooks/usePlan.js +++ b/src/hooks/usePlan.js @@ -425,7 +425,7 @@ export function usePlan(params = {}) { await getCanvasByObjectNo(objectNo, planNo).then((res) => { if (res.length > 0) { setCurrentCanvasPlan((prev) => ({ ...prev, canvasStatus: res.find((plan) => plan.planNo === planNo).canvasStatus })) - setPlans((plans) => plans.map((plan) => ({ ...plan, canvasStatus: res.find((plan) => plan.planNo === planNo).canvasStatus }))) + setPlans((plans) => plans.map((plan) => ({ ...plan, canvasStatus: res.find((resPlan) => resPlan.planNo === plan.planNo).canvasStatus }))) } }) }