Compare commits
7 Commits
d1ea6229a2
...
253ddc258a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
253ddc258a | ||
|
|
cb960baa0c | ||
|
|
51a2782d3c | ||
|
|
e717c28758 | ||
|
|
bfc7b3fe32 | ||
|
|
648c2e208a | ||
|
|
ebbf010e6e |
@ -449,8 +449,8 @@ export function usePlan(params = {}) {
|
||||
if (currentCanvasPlan?.id) {
|
||||
await saveCanvas(false)
|
||||
}
|
||||
JSON.parse(currentCanvasData()).objects.length > 0
|
||||
? swalFire({
|
||||
if (JSON.parse(currentCanvasData()).objects.length > 0) {
|
||||
swalFire({
|
||||
text: `Plan ${currentCanvasPlan.planNo} ` + getMessage('plan.message.confirm.copy'),
|
||||
type: 'confirm',
|
||||
confirmFn: async () => {
|
||||
@ -464,7 +464,7 @@ export function usePlan(params = {}) {
|
||||
setIsGlobalLoading(false)
|
||||
},
|
||||
})
|
||||
: async () => {
|
||||
} else {
|
||||
setIsGlobalLoading(true)
|
||||
await postObjectPlan(userId, objectNo, false, false)
|
||||
setIsGlobalLoading(false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user