17637: Fixed function to (re)load projects on side panel.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Wed, 12 May 2021 20:59:08 +0000 (17:59 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Thu, 13 May 2021 14:40:31 +0000 (11:40 -0300)
This fix makes the recently trashed project to dissapear from the left side
tree.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

src/store/project-panel/project-panel-middleware-service.ts
src/store/side-panel-tree/side-panel-tree-actions.ts

index b889f7cbc0ad7277337fa6a90e147d2a26180149..3a37be71faf9d338140e43c8543aa7440a03e07f 100644 (file)
@@ -23,7 +23,7 @@ import { ProjectResource } from "~/models/project";
 import { updateResources } from "~/store/resources/resources-actions";
 import { getProperty } from "~/store/properties/properties";
 import { snackbarActions, SnackbarKind } from '~/store/snackbar/snackbar-actions';
-import { progressIndicatorActions } from '~/store/progress-indicator/progress-indicator-actions.ts';
+import { progressIndicatorActions } from '~/store/progress-indicator/progress-indicator-actions';
 import { DataExplorer, getDataExplorer } from '~/store/data-explorer/data-explorer-reducer';
 import { ListResults } from '~/services/common-service/common-service';
 import { loadContainers } from '~/store/processes/processes-actions';
index 6152b99f1edde80cae53d1d3dc8d2d0bf8b8170c..ede4c00c7605794d4fc7f89cfb41c870fb751ec3 100644 (file)
@@ -97,7 +97,7 @@ export const loadSidePanelTreeProjects = (projectUuid: string) =>
         const node = treePicker ? getNode(projectUuid)(treePicker) : undefined;
         if (projectUuid === SidePanelTreeCategory.SHARED_WITH_ME) {
             await dispatch<any>(loadSharedRoot);
-        } else if (node || projectUuid === '') {
+        } else if (node || projectUuid !== '') {
             await dispatch<any>(loadProject(projectUuid));
         }
     };