Remove extra code from example that is not required, since it's confusingly similar to previous block
This commit is contained in:
parent
3e3834a762
commit
4c84eafbdd
1 changed files with 2 additions and 2 deletions
|
|
@ -545,9 +545,9 @@ m.route(document.body, "/user/list", {
|
||||||
"/user/list": {
|
"/user/list": {
|
||||||
onmatch: state.loadUsers,
|
onmatch: state.loadUsers,
|
||||||
render: function() {
|
render: function() {
|
||||||
return state.users.length > 0 ? state.users.map(function(user) {
|
return state.users.map(function(user) {
|
||||||
return m("div", user.id)
|
return m("div", user.id)
|
||||||
}) : "loading"
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue