chore: don't recalculate everything
This commit is contained in:
parent
a3e289c06c
commit
9c3259c660
|
@ -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>
|
||||
|
||||
|
|
Reference in New Issue
Block a user