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",
SafeStateChangeMixin, SafeStateChangeMixin,
EventListenerMixin('newaccountbyuser'), EventListenerMixin('newaccountbyuser'),
EventListenerMixin('accountremovedbyuser')], EventListenerMixin('accountremovedbyuser')],
getInitialState: function () { getInitialState: function () {
var state={}; var state={};
@ -230,7 +231,6 @@ App = React.createClass({displayName: "App",
); );
} }
return ( return (
React.createElement(Grid, null, React.createElement(Grid, null,
@ -265,7 +265,7 @@ App = React.createClass({displayName: "App",
this.props.children && React.cloneElement(this.props.children, { this.props.children && React.cloneElement(this.props.children, {
accounts:this.state.accounts, accounts:this.state.accounts,
activeAccount:this.state.activeAccount, activeAccount:this.state.activeAccount,
key:this.state.activeAccount key: this.props.location.pathname
}) })
) )
) )

4
jsx/App.js

@ -56,6 +56,7 @@ App = React.createClass({
SafeStateChangeMixin, SafeStateChangeMixin,
EventListenerMixin('newaccountbyuser'), EventListenerMixin('newaccountbyuser'),
EventListenerMixin('accountremovedbyuser')], EventListenerMixin('accountremovedbyuser')],
getInitialState: function () { getInitialState: function () {
var state={}; var state={};
@ -229,7 +230,6 @@ App = React.createClass({
); );
} }
return ( return (
<Grid> <Grid>
@ -264,7 +264,7 @@ App = React.createClass({
{this.props.children && React.cloneElement(this.props.children, { {this.props.children && React.cloneElement(this.props.children, {
accounts:this.state.accounts, accounts:this.state.accounts,
activeAccount:this.state.activeAccount, activeAccount:this.state.activeAccount,
key:this.state.activeAccount key: this.props.location.pathname
})} })}
</Col> </Col>
</Row> </Row>

Loading…
Cancel
Save