From f0f25b10c0e909df4f366e132f46834a56493e8d Mon Sep 17 00:00:00 2001 From: Edin Dazdarevic Date: Tue, 27 Jan 2015 21:38:04 +0100 Subject: [PATCH] fix for the mysterious bug :) --- front-ui/app/components/items/itemWithDetailsPage.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/front-ui/app/components/items/itemWithDetailsPage.js b/front-ui/app/components/items/itemWithDetailsPage.js index 9bd8f33..228b360 100644 --- a/front-ui/app/components/items/itemWithDetailsPage.js +++ b/front-ui/app/components/items/itemWithDetailsPage.js @@ -38,9 +38,11 @@ var ItemWithDetailsPage = React.createClass({ }, _onChange: function () { - this.setState({ - item: ItemStore.getSelectedItem() - }); + if(this.isMounted()) { + this.setState({ + item: ItemStore.getSelectedItem() + }); + } }, getInitialState: function () {