Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,7 @@ var SimpleStorage = function (_Component) {

// update parent's state with the result
// store.js handles parsing
if (name in parent.state) {
parent.setState(_defineProperty({}, name, value));
}
parent.setState(_defineProperty({}, name, value));
}
});

Expand Down
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ export default class SimpleStorage extends Component {

// update parent's state with the result
// store.js handles parsing
if (name in parent.state) {
parent.setState({ [name]: value });
}
parent.setState({ [name]: value });
}
});

Expand Down