diff --git a/frontend/src/components/tasks/partials/DeferTask.vue b/frontend/src/components/tasks/partials/DeferTask.vue index edcaf9a3a..c5382f68d 100644 --- a/frontend/src/components/tasks/partials/DeferTask.vue +++ b/frontend/src/components/tasks/partials/DeferTask.vue @@ -46,13 +46,13 @@ import TaskService from '@/services/task' import type {ITask} from '@/modelTypes/ITask' import { getFlatpickrLanguage } from '@/helpers/flatpickrLanguage' -const { - modelValue, -} = defineProps<{ +const props = defineProps<{ modelValue: ITask, }>() -const emit = defineEmits(['update:modelValue']) +const emit = defineEmits<{ + 'update:modelValue': [value: ITask] +}>() const {t} = useI18n({useScope: 'global'}) @@ -65,7 +65,7 @@ const lastValue = ref() const changeInterval = ref>() watch( - () => modelValue, + () => props.modelValue, (value) => { task.value = { ...value } dueDate.value = value.dueDate