X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9438812a13875c06996ed7190f8faf21011910bd..ec2c8cbaac7628b5d2bd3d65b89b93af0e95c33b:/src/views-components/api-token/api-token.tsx diff --git a/src/views-components/api-token/api-token.tsx b/src/views-components/api-token/api-token.tsx index 0ae41c65..41fce727 100644 --- a/src/views-components/api-token/api-token.tsx +++ b/src/views-components/api-token/api-token.tsx @@ -5,10 +5,9 @@ import { Redirect, RouteProps } from "react-router"; import * as React from "react"; import { connect, DispatchProp } from "react-redux"; -import { getUserDetails, saveApiToken } from "../../store/auth/auth-action"; -import { getProjectList } from "../../store/project/project-action"; -import { getUrlParameter } from "../../common/url"; -import { AuthService } from "../../services/auth-service/auth-service"; +import { getUserDetails, saveApiToken } from "~/store/auth/auth-action"; +import { getUrlParameter } from "~/common/url"; +import { AuthService } from "~/services/auth-service/auth-service"; interface ApiTokenProps { authService: AuthService; @@ -20,10 +19,7 @@ export const ApiToken = connect()( const search = this.props.location ? this.props.location.search : ""; const apiToken = getUrlParameter(search, 'api_token'); this.props.dispatch(saveApiToken(apiToken)); - this.props.dispatch(getUserDetails()).then(() => { - const rootUuid = this.props.authService.getRootUuid(); - this.props.dispatch(getProjectList(rootUuid)); - }); + this.props.dispatch(getUserDetails()); } render() { return ;