mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 14:54:33 +00:00
fix for last fix to example
This commit is contained in:
parent
1cda5ad4b4
commit
36703bebcb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user