1
0

fix(navigation): make sure the Favorites project shows up when marking or unmarking a task as favorite

This commit is contained in:
kolaente
2023-03-28 14:03:41 +02:00
parent d898316918
commit fd7d90b017
3 changed files with 7 additions and 5 deletions

View File

@ -146,10 +146,11 @@ export const useProjectStore = defineStore('project', () => {
const projectService = new ProjectService()
try {
const projects = await projectService.getAll({}, {is_archived: true}) as IProject[]
setProjects(projects)
const loadedProjects = await projectService.getAll({}, {is_archived: true}) as IProject[]
projects.value = {}
setProjects(loadedProjects)
return projects
return loadedProjects
} finally {
cancel()
}