forked from vikunja/frontend
Fix global mutation of has tasks state
This commit is contained in:
parent
5b70f8d5d7
commit
9195becd99
@ -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…
x
Reference in New Issue
Block a user