Fixed more clone issues
This commit is contained in:
@@ -6,7 +6,7 @@ const isLoading = ref<boolean>(false)
|
||||
// Watch the popover state
|
||||
watch(isDeleteEventModalOpen, (hasOpened, _o) => {
|
||||
if (hasOpened && lastActiveEvent.value) {
|
||||
eventSkeleton.value = { ...lastActiveEvent.value }
|
||||
eventSkeleton.value = structuredClone(toRaw(lastActiveEvent.value))
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ const { resetSkeleton } = useCalendar();
|
||||
// Watch the popover state
|
||||
watch(isEditEventModalOpen, (hasOpened, _o) => {
|
||||
if (hasOpened && lastActiveEvent.value) {
|
||||
eventSkeleton.value = { ...lastActiveEvent.value }
|
||||
eventSkeleton.value = structuredClone(toRaw(lastActiveEvent.value))
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user