From 9195becd99c7ebc336abd90a756b3410aff545a1 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 6 Aug 2021 19:29:22 +0200 Subject: [PATCH] Fix global mutation of has tasks state --- src/store/modules/tasks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => {