From 67de7e7c8f62a862f488dbd1ccc9e16a7a164ba7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 9 May 2020 14:54:42 +0200 Subject: [PATCH] Fix not re-loading tasks when switching between overviews --- src/components/tasks/ShowTasks.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/tasks/ShowTasks.vue b/src/components/tasks/ShowTasks.vue index 62dcfdf8..a71664dc 100644 --- a/src/components/tasks/ShowTasks.vue +++ b/src/components/tasks/ShowTasks.vue @@ -39,10 +39,8 @@ this.taskService = new TaskService() this.loadPendingTasks() }, - computed: { - undoneTasks: function () { - return this.tasks.filter(t => !t.done) - } + watch: { + '$route': 'loadPendingTasks', }, methods: { loadPendingTasks() {