From d5e3f24497537babf7c00a6522ab3de77e2221ed Mon Sep 17 00:00:00 2001 From: joe fleming Date: Fri, 22 Mar 2019 14:56:44 -0700 Subject: [PATCH] fix: correctly assign todo id --- src/apps/todo-state/state/todos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/todo-state/state/todos.js b/src/apps/todo-state/state/todos.js index 2cf5156..d12f207 100644 --- a/src/apps/todo-state/state/todos.js +++ b/src/apps/todo-state/state/todos.js @@ -29,7 +29,7 @@ export default () => add({ state }, name) { state.todos.push({ name, - id: state.todos.length, + id: state.todos.length + 1, completed: false, }); },