chore: don't recalculate everything
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
aefdefcf38
commit
a7bb5d8564
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<ProjectCardGrid
|
<ProjectCardGrid
|
||||||
:projects="projects"
|
:projects="projects"
|
||||||
:show-archived="showArchived"
|
:show-archived="showArchived"
|
||||||
/>
|
/>
|
||||||
|
@ -44,10 +44,9 @@ const showArchived = useStorage('showArchived', false)
|
||||||
|
|
||||||
const loading = computed(() => projectStore.isLoading)
|
const loading = computed(() => projectStore.isLoading)
|
||||||
const projects = computed(() => {
|
const projects = computed(() => {
|
||||||
return projectStore.projectsArray.filter(project => showArchived.value
|
return showArchived.value
|
||||||
? true
|
? projectStore.projectsArray
|
||||||
: !project.isArchived,
|
: projectStore.projectsArray.filter(({isArchived}) => !isArchived)
|
||||||
)
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user