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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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 => {