X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c11055f2d6ce8385088bc221eab1175e31777ec0..eb2560b06f58e029b63a169a6809ba514ceab072:/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 3dc6d1a1..41fce727 100644 --- a/src/views-components/api-token/api-token.tsx +++ b/src/views-components/api-token/api-token.tsx @@ -6,7 +6,6 @@ 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"; @@ -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 ;