diff --git a/src/store/modules/tasks.js b/src/store/modules/tasks.js index 3fd2e8d4..b50c3f93 100644 --- a/src/store/modules/tasks.js +++ b/src/store/modules/tasks.js @@ -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 => {