21357: added loadsidepaneltree to updatecollection Arvados-DCO-1.1-Signed-off-by...
authorLisa Knox <lisaknox83@gmail.com>
Tue, 19 Mar 2024 17:57:04 +0000 (13:57 -0400)
committerLisa Knox <lisaknox83@gmail.com>
Tue, 19 Mar 2024 17:57:04 +0000 (13:57 -0400)
services/workbench2/src/store/collections/collection-update-actions.ts

index d955c9478d3d6d3198a2a249e94a142cd8c5a77a..f6e52a4f80ad45d537e94b924c0cc230dc79819f 100644 (file)
@@ -22,6 +22,7 @@ import { updateResources } from "../resources/resources-actions";
 import { loadDetailsPanel } from "../details-panel/details-panel-action";
 import { getResource } from "store/resources/resources";
 import { CollectionProperties } from "./collection-create-actions";
+import { loadSidePanelTreeProjects, SidePanelTreeCategory } from "store/side-panel-tree/side-panel-tree-actions";
 
 export interface CollectionUpdateFormDialogData {
     uuid: string;
@@ -65,6 +66,7 @@ export const updateCollection = (collection: CollectionUpdateFormDialogData) =>
             }));
             dispatch<any>(updateResources([updatedCollection]));
             dispatch<any>(loadDetailsPanel(updatedCollection.uuid));
+            dispatch<any>(loadSidePanelTreeProjects(SidePanelTreeCategory.FAVORITES))
         }).catch (e => {
             dispatch(progressIndicatorActions.STOP_WORKING(COLLECTION_UPDATE_FORM_NAME));
             const error = getCommonResourceServiceError(e);