From 44dc8983c8474a617dec62fafa0722fabfb5e397 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 15 May 2022 22:19:29 +0200 Subject: [PATCH] fix: direct state mutation when adding another reminder to a task --- src/components/tasks/partials/reminders.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tasks/partials/reminders.vue b/src/components/tasks/partials/reminders.vue index 806779b3..df5c31e9 100644 --- a/src/components/tasks/partials/reminders.vue +++ b/src/components/tasks/partials/reminders.vue @@ -66,7 +66,7 @@ const emit = defineEmits(['update:modelValue', 'change']) const reminders = ref([]) onMounted(() => { - reminders.value = props.modelValue + reminders.value = [...props.modelValue] }) watch(