Skip to content

Commit

Permalink
Resolve circular reactive dependency error in appointment computed pr…
Browse files Browse the repository at this point in the history
…operty

Create a deep copy of appointmentData.value to avoid ifinite recursive updates of the computed property
  • Loading branch information
Me-Phew committed Mar 23, 2024
1 parent f55ce32 commit 437b10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Dashboard/AppointmentView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 437b10f

Please sign in to comment.