Fix listId not changing when switching between lists

This commit is contained in:
kolaente 2020-05-01 11:50:12 +02:00
parent 5009308c52
commit 010da8cf07
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
2 changed files with 6 additions and 10 deletions

View file

@ -118,7 +118,6 @@
name: 'List',
data() {
return {
listId: this.$route.params.listId,
taskService: TaskService,
list: {},
isTaskEdit: false,
@ -152,7 +151,7 @@
}
this.showError = false
let task = new TaskModel({text: this.newTaskText, listId: this.listId})
let task = new TaskModel({text: this.newTaskText, listId: this.$route.params.listId})
this.taskService.create(task)
.then(r => {
this.tasks.push(r)