fix: properly determine if there are projects
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2023-04-12 11:31:16 +02:00
parent c576dfe0d5
commit 1958f5a51d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -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<IProject[]>(() => {
return (id: IProject['id']) => projectsArray.value.filter(p => p.parentProjectId === id)