From a5c0b035e7ab679b637d9d22124a9e084da809da Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 27 Apr 2020 12:08:38 +0200 Subject: [PATCH] Fix creating a new task on a list when in list view --- src/components/lists/views/List.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/lists/views/List.vue b/src/components/lists/views/List.vue index 9b35ce3b..44678624 100644 --- a/src/components/lists/views/List.vue +++ b/src/components/lists/views/List.vue @@ -118,7 +118,7 @@ name: 'List', data() { return { - listId: this.$route.params.id, + listId: this.$route.params.listId, taskService: TaskService, list: {}, isTaskEdit: false, @@ -152,7 +152,7 @@ } this.showError = false - let task = new TaskModel({text: this.newTaskText, listId: this.$route.params.id}) + let task = new TaskModel({text: this.newTaskText, listId: this.listId}) this.taskService.create(task) .then(r => { this.tasks.push(r)