chore: export projects as array directly from projects store
This commit is contained in:
@ -79,10 +79,10 @@ onBeforeMount(async () => {
|
||||
await projectStore.loadProjects()
|
||||
})
|
||||
|
||||
const projects = computed(() => Object.values(projectStore.projects)
|
||||
const projects = computed(() => projectStore.projectsArray
|
||||
.filter(p => p.parentProjectId === 0 && !p.isArchived)
|
||||
.sort((a, b) => a.position < b.position ? -1 : 1))
|
||||
const favoriteProjects = computed(() => Object.values(projectStore.projects)
|
||||
const favoriteProjects = computed(() => projectStore.projectsArray
|
||||
.filter(p => !p.isArchived && p.isFavorite)
|
||||
.map(p => ({
|
||||
...p,
|
||||
|
Reference in New Issue
Block a user