From 61fbc44ced02bc158ee35fa09cdff758013c42f0 Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Fri, 7 Feb 2025 17:12:48 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=95=A8=EC=88=98=EB=AA=85=20?= =?UTF-8?q?=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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hooks/usePlan.js b/src/hooks/usePlan.js index f49c31fd..a93cb075 100644 --- a/src/hooks/usePlan.js +++ b/src/hooks/usePlan.js @@ -156,7 +156,7 @@ export function usePlan(params = {}) { * case 2) 빈 플랜 생성 : isInitPlan = false, isCopy = false * case 3) 복제 플랜 생성 : isInitPlan = false, isCopy = true */ - const postObjectPlanTemp = async (userId, objectNo, isCopy = false, isInitPlan = false) => { + const postObjectPlan = async (userId, objectNo, isCopy = false, isInitPlan = false) => { const planData = isCopy ? { userId: userId, @@ -345,13 +345,13 @@ export function usePlan(params = {}) { text: `Plan ${currentCanvasPlan.planNo} ` + getMessage('plan.message.confirm.copy'), type: 'confirm', confirmFn: async () => { - await postObjectPlanTemp(userId, objectNo, true, false) + await postObjectPlan(userId, objectNo, true, false) }, denyFn: async () => { - await postObjectPlanTemp(userId, objectNo, false, false) + await postObjectPlan(userId, objectNo, false, false) }, }) - : await postObjectPlanTemp(userId, objectNo, false, false) + : await postObjectPlan(userId, objectNo, false, false) } /** @@ -407,7 +407,7 @@ export function usePlan(params = {}) { setCurrentCanvasPlan(res.find((plan) => plan.planNo === planNo)) setPlans(res) } else { - await postObjectPlanTemp(userId, objectNo, false, true) + await postObjectPlan(userId, objectNo, false, true) } }) }