diff --git a/ui/src/pages/Calendar.vue b/ui/src/pages/Calendar.vue index 6348060..b042e46 100644 --- a/ui/src/pages/Calendar.vue +++ b/ui/src/pages/Calendar.vue @@ -124,6 +124,7 @@ const calendarOptions = ref({ calendarOptions.value.datesSet = onDatesSet watch(() => route.params.id, async (newID) => { + console.log(newID) if (newID === undefined) { panelOpen.value = false; currentEventID.value = null; @@ -131,7 +132,7 @@ watch(() => route.params.id, async (newID) => { panelOpen.value = true; currentEventID.value = Number(newID); } -}) +}, { immediate: true }) watch(panelOpen, async () => {