feat: reduce eslint warnings (#2396)
Also added `Destructuring the 'props' will cause the value to lose reactivity` as a warning to prepare for the removal of the propsDestructure option in vite. Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2396 Reviewed-by: konrad <k@knt.li> Co-authored-by: Dominik Pschenitschni <mail@celement.de> Co-committed-by: Dominik Pschenitschni <mail@celement.de>
This commit is contained in:

committed by
konrad

parent
c6e934bd6b
commit
2004d129c3
@ -234,11 +234,10 @@ import {useConfigStore} from '@/stores/config'
|
||||
import {useProjectStore} from '@/stores/projects'
|
||||
import type {IProjectView} from '@/modelTypes/IProjectView'
|
||||
|
||||
const props = defineProps({
|
||||
projectId: {
|
||||
default: 0,
|
||||
required: false,
|
||||
},
|
||||
const props = withDefaults(defineProps<{
|
||||
projectId?: IProject['id'],
|
||||
}>(), {
|
||||
projectId: 0,
|
||||
})
|
||||
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
Reference in New Issue
Block a user