fix for last fix to example

This commit is contained in:
Ari Lazier 2015-08-28 13:37:03 -07:00
parent 1cda5ad4b4
commit 36703bebcb
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class Edit extends React.Component {
save() {
realm.write(function () {
if (id == this.props.list.items.length) {
if (this.props.todoId == this.props.list.items.length) {
this.props.list.items.push({text: this.state.text});
}
else {