X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3ad7e33a2d50e9ed2298624ea5cac7cb5cd21a6f..9999a9db9fede0e1971dc792389982b428a1bb19:/src/index.tsx diff --git a/src/index.tsx b/src/index.tsx index 351ed2e04b..ca92c381f3 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -14,7 +14,7 @@ import configureStore from "./store/store"; import { ConnectedRouter } from "react-router-redux"; import ApiToken from "./components/api-token/api-token"; import authActions from "./store/auth/auth-action"; -import { projectService } from "./services/services"; +import { authService, projectService } from "./services/services"; const history = createBrowserHistory(); @@ -30,7 +30,8 @@ const store = configureStore({ }, history); store.dispatch(authActions.INIT()); -store.dispatch(projectService.getProjectList()); +const rootUuid = authService.getRootUuid(); +store.dispatch(projectService.getProjectList(rootUuid)); const App = () =>