const search = this.props.location ? this.props.location.search : "";
const apiToken = ApiToken.getUrlParameter(search, 'api_token');
this.props.dispatch(authActions.SAVE_API_TOKEN(apiToken));
- this.props.dispatch(authService.getUserDetails());
- this.props.dispatch(projectService.getProjectList());
+ this.props.dispatch<any>(authService.getUserDetails()).then(() => {
+ const rootUuid = authService.getRootUuid();
+ this.props.dispatch(projectService.getProjectList(rootUuid));
+ });
}
render() {
return <Redirect to="/"/>;