fix bug when navigating between profiles

This commit is contained in:
Julian Steinwachs 2016-03-12 10:33:31 +01:00
parent e3ce7bd75c
commit dca4a2a499
2 changed files with 4 additions and 4 deletions

View File

@ -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
})
)
)

View File

@ -56,6 +56,7 @@ App = React.createClass({
SafeStateChangeMixin,
EventListenerMixin('newaccountbyuser'),
EventListenerMixin('accountremovedbyuser')],
getInitialState: function () {
var state={};
@ -229,7 +230,6 @@ App = React.createClass({
);
}
return (
<Grid>
@ -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
})}
</Col>
</Row>