feat: use withDefaults for AddTask
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dominik Pschenitschni 2024-06-26 12:15:36 +02:00 committed by konrad
parent 553fdeee6a
commit 7db9e64053

@ -67,11 +67,10 @@ import {useTaskStore} from '@/stores/tasks'
import {useAutoHeightTextarea} from '@/composables/useAutoHeightTextarea'
const props = defineProps({
defaultPosition: {
type: Number,
required: false,
},
const props = withDefaults(defineProps<{
defaultPosition?: number,
}>(), {
defaultPosition: undefined,
})
const emit = defineEmits(['taskAdded'])