fix: plan 맵핑 조건 수정

This commit is contained in:
Daseul Kim 2025-02-11 10:53:18 +09:00
parent 18b9cafbce
commit dd95c36b08

View File

@ -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 })))
}
})
}