1
0

chore(task): move toggleFavorite to store

This commit is contained in:
kolaente
2023-03-28 16:31:33 +02:00
parent a95014dc5d
commit 36bec9e64f
3 changed files with 13 additions and 5 deletions

View File

@ -756,8 +756,7 @@ async function changeProject(project: IProject) {
}
async function toggleFavorite() {
task.isFavorite = !task.isFavorite
const newTask = await taskService.update(task)
const newTask = taskStore.toggleFavorite(task.value)
Object.assign(task, newTask)
}