Change move-to feature - files path, rename variables and files
[arvados-workbench2.git] / src / index.tsx
index fcc02f1e73088f18b2af30d74da1c7c1647ab400..bee08c80a7fa598d7ffd42ad87abd14335f872ef 100644 (file)
@@ -27,10 +27,9 @@ import { collectionFilesActionSet } from './views-components/context-menu/action
 import { collectionFilesItemActionSet } from './views-components/context-menu/action-sets/collection-files-item-action-set';
 import { collectionActionSet } from './views-components/context-menu/action-sets/collection-action-set';
 import { collectionResourceActionSet } from './views-components/context-menu/action-sets/collection-resource-action-set';
-import { initPickerProjectTree } from './views-components/project-tree-picker/project-tree-picker';
 
-const getBuildNumber = () => "BN-" + (process.env.BUILD_NUMBER || "dev");
-const getGitCommit = () => "GIT-" + (process.env.GIT_COMMIT || "latest").substr(0, 7);
+const getBuildNumber = () => "BN-" + (process.env.REACT_APP_BUILD_NUMBER || "dev");
+const getGitCommit = () => "GIT-" + (process.env.REACT_APP_GIT_COMMIT || "latest").substr(0, 7);
 const getBuildInfo = () => getBuildNumber() + " / " + getGitCommit();
 
 const buildInfo = getBuildInfo();
@@ -53,8 +52,7 @@ fetchConfig()
         const store = configureStore(history, services);
 
         store.dispatch(initAuth());
-        store.dispatch(getProjectList(services.authService.getUuid()));
-        store.dispatch(initPickerProjectTree());    
+        store.dispatch(getProjectList(services.authService.getUuid()));  
 
         const TokenComponent = (props: any) => <ApiToken authService={services.authService} {...props}/>;
         const WorkbenchComponent = (props: any) => <Workbench authService={services.authService} buildInfo={buildInfo} {...props}/>;