fix: remove unnecessary fallback
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2023-04-12 11:15:55 +02:00
parent cb122a02eb
commit 13734848cf
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ export const useProjectStore = defineStore('project', () => {
.filter(p => !p.isArchived && p.isFavorite))
const hasProjects = computed(() => projects.value ? true : false)
const getChildProjects = computed(() => {
return (id: IProject['id']) => projectsArray.value.filter(p => p.parentProjectId === id) || []
const getChildProjects = computed<IProject[]>(() => {
return (id: IProject['id']) => projectsArray.value.filter(p => p.parentProjectId === id)
})
const findProjectByExactname = computed(() => {