Merge branch 'master'
[arvados-workbench2.git] / src / index.tsx
index 351ed2e04b7df755e29fc8131fac218bee9921e9..ca92c381f3993ddcdc7719d4450b7c8e7b8456a9 100644 (file)
@@ -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<any>(projectService.getProjectList());
+const rootUuid = authService.getRootUuid();
+store.dispatch<any>(projectService.getProjectList(rootUuid));
 
 const App = () =>
     <Provider store={store}>