Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / keep-service-action-set.ts
index 0d2cbd0742414f6bd6da58e7e11b1322d2fc3fe9..2957f008cd055f04fea2533e3a5e9e28ee96dfac 100644 (file)
@@ -13,21 +13,21 @@ export const keepServiceActionSet: ContextMenuActionSet = [
             name: 'Attributes',
             icon: AttributesIcon,
             execute: (dispatch, resources) => {
-                resources.forEach((resource) => dispatch<any>(openKeepServiceAttributesDialog(resource.uuid)));
+                 dispatch<any>(openKeepServiceAttributesDialog(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>(openKeepServiceRemoveDialog(resource.uuid)));
+                 dispatch<any>(openKeepServiceRemoveDialog(resources[0].uuid));
             },
         },
     ],