From d414b65e7d591f567067ce8085b9934207dc938a Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 12 Apr 2023 11:15:55 +0200 Subject: [PATCH] fix: remove unnecessary fallback --- src/stores/projects.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/projects.ts b/src/stores/projects.ts index 3132c5c95..6586fb14d 100644 --- a/src/stores/projects.ts +++ b/src/stores/projects.ts @@ -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(() => { + return (id: IProject['id']) => projectsArray.value.filter(p => p.parentProjectId === id) }) const findProjectByExactname = computed(() => {