1
0

chore: export favorite projects from store

This commit is contained in:
kolaente
2023-04-01 11:18:11 +02:00
parent 336db56316
commit 131022da42
2 changed files with 4 additions and 2 deletions

View File

@ -24,8 +24,7 @@ const projects = computed({
},
set() { }, // Vue will complain about the component not being writable - but we never need to write here. The setter is only here to silence the warning.
})
const favoriteProjects = computed(() => projectStore.projectsArray
.filter(p => !p.isArchived && p.isFavorite)
const favoriteProjects = computed(() => projectStore.favoriteProjects
.sort((a, b) => a.position - b.position))
</script>