feat: use withDefaults for AddTask
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
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'])
|
||||
|
Loading…
Reference in New Issue
Block a user