Fix global mutation of has tasks state
This commit is contained in:
parent
5b70f8d5d7
commit
9195becd99
1 changed files with 1 additions and 1 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue