1
0

feat: remove props destructuring for DeferTask

This commit is contained in:
Dominik Pschenitschni 2024-07-05 14:48:59 +02:00 committed by konrad
parent a10f9ca225
commit 46aa2fff0f

View File

@ -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<Date | null>()
const changeInterval = ref<ReturnType<typeof setInterval>>()
watch(
() => modelValue,
() => props.modelValue,
(value) => {
task.value = { ...value }
dueDate.value = value.dueDate