diff --git a/src/views/dashboard/admin/components/TodoList/Todo.vue b/src/views/dashboard/admin/components/TodoList/Todo.vue index c4b3cae2..2dc80d71 100644 --- a/src/views/dashboard/admin/components/TodoList/Todo.vue +++ b/src/views/dashboard/admin/components/TodoList/Todo.vue @@ -61,9 +61,8 @@ export default { const value = e.target.value.trim() const { todo } = this if (!value) { - this.deleteTodo({ - todo - }) + this.deleteTodo(todo) + this.editing = false } else if (this.editing) { this.editTodo({ todo,