chore: don't recalculate everything
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
kolaente 2023-04-14 17:55:47 +02:00
parent aefdefcf38
commit a7bb5d8564
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -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)
})
</script>