Fixed new task field not being reset after adding a new task
This commit is contained in:
parent
c0a8ec7bec
commit
160fb1ff12
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@
|
||||||
this.taskService.create(task)
|
this.taskService.create(task)
|
||||||
.then(r => {
|
.then(r => {
|
||||||
this.list.addTaskToList(r)
|
this.list.addTaskToList(r)
|
||||||
|
this.newTaskText = ''
|
||||||
message.success({message: 'The task was successfully created.'}, this)
|
message.success({message: 'The task was successfully created.'}, this)
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
|
|
Loading…
Reference in a new issue