From a7bb5d85643371fcb0cfc29f3ed23c37587fe4b4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 14 Apr 2023 17:55:47 +0200 Subject: [PATCH] chore: don't recalculate everything --- src/views/project/ListProjects.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/project/ListProjects.vue b/src/views/project/ListProjects.vue index 35862dc8f..83845c096 100644 --- a/src/views/project/ListProjects.vue +++ b/src/views/project/ListProjects.vue @@ -15,7 +15,7 @@ - @@ -44,10 +44,9 @@ const showArchived = useStorage('showArchived', false) const loading = computed(() => projectStore.isLoading) const projects = computed(() => { - return projectStore.projectsArray.filter(project => showArchived.value - ? true - : !project.isArchived, - ) + return showArchived.value + ? projectStore.projectsArray + : projectStore.projectsArray.filter(({isArchived}) => !isArchived) })