fix for the mysterious bug :)
This commit is contained in:
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user