From 437b10fab2d1cdbc3e4c0350e981733cfdaf9a2f Mon Sep 17 00:00:00 2001 From: Me-Phew Date: Sat, 23 Mar 2024 12:38:30 +0100 Subject: [PATCH] Resolve circular reactive dependency error in appointment computed property Create a deep copy of appointmentData.value to avoid ifinite recursive updates of the computed property --- src/views/Dashboard/AppointmentView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Dashboard/AppointmentView.vue b/src/views/Dashboard/AppointmentView.vue index 52836f1..8eb902e 100644 --- a/src/views/Dashboard/AppointmentView.vue +++ b/src/views/Dashboard/AppointmentView.vue @@ -291,7 +291,7 @@ export default { const startTime = new Date(`${appointmentData.value.start_slot.start_time}`); const endTime = new Date(`${appointmentData.value.end_slot.end_time}`); - const appointmentTemp = appointmentData.value; + const appointmentTemp = JSON.parse(JSON.stringify(appointmentData.value)); const locale = store.state.settings.language;