fix for the mysterious bug :)

This commit is contained in:
Edin Dazdarevic
2015-01-27 21:38:04 +01:00
parent e52009404c
commit f0f25b10c0

View File

@@ -38,9 +38,11 @@ var ItemWithDetailsPage = React.createClass({
}, },
_onChange: function () { _onChange: function () {
this.setState({ if(this.isMounted()) {
item: ItemStore.getSelectedItem() this.setState({
}); item: ItemStore.getSelectedItem()
});
}
}, },
getInitialState: function () { getInitialState: function () {