18787: Avoids re-rendering by only dispatching SET_COLLECTIONS when needed.
[arvados-workbench2.git] / src / store / workbench / workbench-actions.ts
index 3142b63339f61ed461ea73a7d59b81239b2d16b8..0a3484310ee74a5d6e5182f3e47fb27290520ef3 100644 (file)
@@ -295,7 +295,7 @@ export const loadCollection = (uuid: string) =>
             if (userUuid) {
                 const match = await loadGroupContentsResource({ uuid, userUuid, services });
                 match({
-                    OWNED: async collection => {
+                    OWNED: collection => {
                         dispatch(collectionPanelActions.SET_COLLECTION(collection as CollectionResource));
                         dispatch(updateResources([collection]));
                         dispatch(activateSidePanelTreeItem(collection.ownerUuid));