X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fuser_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;h=601205059354bf998b4a67de130311e0f74060cd;hb=0639632bc78cfc65b26624c20e6ce4cb81d8be8f;hp=c86d6b1cf7561ae082027919add7f7cda6fb6619;hpb=41f386a117ec725ad1eb49a9c571107a0c7d1c11;p=osm%2FUI.git diff --git a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx index c86d6b1cf..601205059 100644 --- a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx @@ -24,9 +24,9 @@ class UserManagementDashboard extends React.Component { constructor(props) { super(props); this.Store = this.props.flux.stores.hasOwnProperty('UserManagementStore') ? this.props.flux.stores.UserManagementStore : this.props.flux.createStore(UserManagementStore); - this.Store.getUsers(); - this.state = this.Store.getState(); - this.actions = this.state.actions; + this.state = this.Store.getState(); + this.actions = this.state.actions; + } componentDidUpdate() { let self = this; @@ -38,6 +38,7 @@ class UserManagementDashboard extends React.Component { } componentWillMount() { this.Store.listen(this.updateState); + this.Store.getUsers(); } componentWillUnmount() { this.Store.unlisten(this.updateState);