chore: don't recalculate everything
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
aefdefcf38
commit
a7bb5d8564
|
@ -15,7 +15,7 @@
|
|||
</div>
|
||||
</header>
|
||||
|
||||
<ProjectCardGrid
|
||||
<ProjectCardGrid
|
||||
:projects="projects"
|
||||
:show-archived="showArchived"
|
||||
/>
|
||||
|
@ -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