From e52009404c56c5a3d062e62f22d58f74454c5228 Mon Sep 17 00:00:00 2001 From: Edin Dazdarevic Date: Tue, 27 Jan 2015 21:22:36 +0100 Subject: [PATCH 1/2] fixing RIBICA is undefined bug --- front-ui/app/ribica.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-ui/app/ribica.js b/front-ui/app/ribica.js index 44bd3f2..7368828 100644 --- a/front-ui/app/ribica.js +++ b/front-ui/app/ribica.js @@ -10,5 +10,5 @@ Router.run(function(Handler, state) { module.exports = { App: ExternalApi, - Router: Routes + Router: Router } From f0f25b10c0e909df4f366e132f46834a56493e8d Mon Sep 17 00:00:00 2001 From: Edin Dazdarevic Date: Tue, 27 Jan 2015 21:38:04 +0100 Subject: [PATCH 2/2] 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 () {