refactor: 함수명 수정
This commit is contained in:
parent
2de4739cf0
commit
61fbc44ced
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user