fix: correctly assign todo id
This commit is contained in:
@@ -29,7 +29,7 @@ export default () =>
|
||||
add({ state }, name) {
|
||||
state.todos.push({
|
||||
name,
|
||||
id: state.todos.length,
|
||||
id: state.todos.length + 1,
|
||||
completed: false,
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user