Merge 'main' into 20382-process-action-menu-cancel
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / root-project-action-set.ts
index afd7a477771db3164a13b0e7556eac0b10dda020..a779d1eb2967877c766d7166b63ae00697a4bfb4 100644 (file)
@@ -13,14 +13,14 @@ export const rootProjectActionSet: ContextMenuActionSet = [
             icon: NewProjectIcon,
             name: 'New project',
             execute: (dispatch, resources) => {
-                resources.forEach((resource) => dispatch<any>(openProjectCreateDialog(resource.uuid)));
+                 dispatch<any>(openProjectCreateDialog(resources[0].uuid));
             },
         },
         {
             icon: CollectionIcon,
             name: 'New Collection',
             execute: (dispatch, resources) => {
-                resources.forEach((resource) => dispatch<any>(openCollectionCreateDialog(resource.uuid)));
+                 dispatch<any>(openCollectionCreateDialog(resources[0].uuid));
             },
         },
     ],