diff --git a/src/components/lists/views/List.vue b/src/components/lists/views/List.vue index 9b35ce3b09..44678624bd 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)