We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e012653 commit cce1519Copy full SHA for cce1519
examples/todomvc/store/mutations.js
@@ -15,7 +15,6 @@ export const mutations = {
15
},
16
17
editTodo (state, { todo, text = todo.text, done = todo.done }) {
18
- todo.text = text
19
- todo.done = done
+ state.todos.splice(state.todos.indexOf(todo), 1, { ...todo, text, done })
20
}
21
0 commit comments