Fixed more clone issues

This commit is contained in:
Alexis
2025-03-11 13:33:44 +01:00
parent 267ed70f5a
commit 04ecbe1c2b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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