Merge 'main' into 20382-process-action-menu-cancel
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / link-action-set.ts
index 4f0b330ec3f7e6660170180c62a4169d29770295..86458423c2e09e489016d3dd8d226c72dd370b8e 100644 (file)
@@ -13,21 +13,21 @@ export const linkActionSet: ContextMenuActionSet = [
             name: 'Attributes',
             icon: AttributesIcon,
             execute: (dispatch, resources) => {
-                resources.forEach((resource) => dispatch<any>(openLinkAttributesDialog(resource.uuid)));
+                 dispatch<any>(openLinkAttributesDialog(resources[0].uuid));
             },
         },
         {
             name: 'API Details',
             icon: AdvancedIcon,
             execute: (dispatch, resources) => {
-                resources.forEach((resource) => dispatch<any>(openAdvancedTabDialog(resource.uuid)));
+                 dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
             },
         },
         {
             name: 'Remove',
             icon: RemoveIcon,
             execute: (dispatch, resources) => {
-                resources.forEach((resource) => dispatch<any>(openLinkRemoveDialog(resource.uuid)));
+                 dispatch<any>(openLinkRemoveDialog(resources[0].uuid));
             },
         },
     ],