From a2cc9ddc8821a4b9b1ee1dd6109d1b3958a06ba6 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 12 Apr 2023 11:31:16 +0200 Subject: [PATCH] fix: properly determine if there are projects --- src/stores/projects.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/projects.ts b/src/stores/projects.ts index 395c7e1be..fe9b5bd7b 100644 --- a/src/stores/projects.ts +++ b/src/stores/projects.ts @@ -34,7 +34,7 @@ export const useProjectStore = defineStore('project', () => { .filter(p => p.parentProjectId === 0 && !p.isArchived)) const favoriteProjects = computed(() => projectsArray.value .filter(p => !p.isArchived && p.isFavorite)) - const hasProjects = computed(() => projects.value ? true : false) + const hasProjects = computed(() => projectsArray.value.length > 0) const getChildProjects = computed(() => { return (id: IProject['id']) => projectsArray.value.filter(p => p.parentProjectId === id)