From dca4a2a4995ea45ac5353412108525212355e4c1 Mon Sep 17 00:00:00 2001 From: Julian Steinwachs Date: Sat, 12 Mar 2016 10:33:31 +0100 Subject: [PATCH] fix bug when navigating between profiles --- build/app-bundle.js | 4 ++-- jsx/App.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/app-bundle.js b/build/app-bundle.js index dcfc50b..faf3cb7 100644 --- a/build/app-bundle.js +++ b/build/app-bundle.js @@ -57,6 +57,7 @@ App = React.createClass({displayName: "App", SafeStateChangeMixin, EventListenerMixin('newaccountbyuser'), EventListenerMixin('accountremovedbyuser')], + getInitialState: function () { var state={}; @@ -230,7 +231,6 @@ App = React.createClass({displayName: "App", ); } - return ( React.createElement(Grid, null, @@ -265,7 +265,7 @@ App = React.createClass({displayName: "App", this.props.children && React.cloneElement(this.props.children, { accounts:this.state.accounts, activeAccount:this.state.activeAccount, - key:this.state.activeAccount + key: this.props.location.pathname }) ) ) diff --git a/jsx/App.js b/jsx/App.js index 48664fe..211c57b 100755 --- a/jsx/App.js +++ b/jsx/App.js @@ -56,6 +56,7 @@ App = React.createClass({ SafeStateChangeMixin, EventListenerMixin('newaccountbyuser'), EventListenerMixin('accountremovedbyuser')], + getInitialState: function () { var state={}; @@ -229,7 +230,6 @@ App = React.createClass({ ); } - return ( @@ -264,7 +264,7 @@ App = React.createClass({ {this.props.children && React.cloneElement(this.props.children, { accounts:this.state.accounts, activeAccount:this.state.activeAccount, - key:this.state.activeAccount + key: this.props.location.pathname })}