X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7e58fd10a7abc133b32a5084796c2b061e03ecd8..28bb06ae7b9983da793f2459c5cc3e8debd71949:/src/components/api-token/api-token.tsx

diff --git a/src/components/api-token/api-token.tsx b/src/components/api-token/api-token.tsx
index bc0caf56df..87da39b025 100644
--- a/src/components/api-token/api-token.tsx
+++ b/src/components/api-token/api-token.tsx
@@ -5,7 +5,8 @@
 import { Redirect, RouteProps } from "react-router";
 import * as React from "react";
 import { connect, DispatchProp } from "react-redux";
-import authActions, { getUserDetails } from "../../store/auth-action";
+import authActions from "../../store/auth/auth-action";
+import { authService, projectService } from "../../services/services";
 
 interface ApiTokenProps {
 }
@@ -22,7 +23,8 @@ class ApiToken extends React.Component<ApiTokenProps & RouteProps & DispatchProp
         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(getUserDetails());
+        this.props.dispatch(authService.getUserDetails());
+        this.props.dispatch(projectService.getProjectList());
     }
     render() {
         return <Redirect to="/"/>
