diff --git a/.tern-project b/.tern-project
index 1866bb1..3e6e516 100644
--- a/.tern-project
+++ b/.tern-project
@@ -1,7 +1,8 @@
{
"ecmaVersion": 6,
"libs": [
- "browser"
+ "browser",
+ "node"
],
"plugins": {
"node": {}
diff --git a/index.html b/index.html
index 3322576..93a7624 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
- MDL Dashboard
+ Todo MVC
diff --git a/src/reducers/todos.js b/src/reducers/todos.js
index 3007fea..c45d12d 100644
--- a/src/reducers/todos.js
+++ b/src/reducers/todos.js
@@ -24,7 +24,9 @@ const todos = (state = [], action) => {
case 'ADD_TODO':
return [
...state,
- todo(undefined, action)
+ todo(undefined, Object.assign(action, {
+ id: state.length
+ }))
]
case 'TOGGLE_TODO':
return state.map(t =>
diff --git a/src/services/data-service.js b/src/services/data-service.js
index 596cfb8..03e8867 100644
--- a/src/services/data-service.js
+++ b/src/services/data-service.js
@@ -21,7 +21,6 @@ const dataService = store => next => action => {
})
break
default:
- next(action)
break
}