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() {