Fix global mutation of has tasks state

This commit is contained in:
kolaente 2021-08-06 19:29:22 +02:00
parent 5b70f8d5d7
commit 9195becd99
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default {
return taskService.getAll({}, params)
.then(r => {
ctx.commit(HAS_TASKS, r.length > 0)
ctx.commit(HAS_TASKS, r.length > 0, {root: true})
return r
})
.catch(e => {