Browse Source

fix bug when navigating between profiles

master
Julian Steinwachs 9 years ago
parent
commit
dca4a2a499
  1. 4
      build/app-bundle.js
  2. 4
      jsx/App.js

4
build/app-bundle.js

@ -57,6 +57,7 @@ App = React.createClass({displayName: "App", @@ -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", @@ -230,7 +231,6 @@ App = React.createClass({displayName: "App",
);
}
return (
React.createElement(Grid, null,
@ -265,7 +265,7 @@ App = React.createClass({displayName: "App", @@ -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
})
)
)

4
jsx/App.js

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

Loading…
Cancel
Save