15768: fixed navigateTo bug Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / collection-action-set.ts
index c93d585990f1c048eab7940acb939c6081c8e74e..f960571e8c4d7f0f1fce5ae6909308528298aca3 100644 (file)
@@ -51,8 +51,8 @@ const commonActionSet: ContextMenuActionSet = [
         {
             icon: OpenIcon,
             name: "Open in new tab",
-            execute: (dispatch, resource) => {
-                dispatch<any>(openInNewTabAction(resource));
+            execute: (dispatch, resources) => {
+                dispatch<any>(openInNewTabAction(resources[0]));
             },
         },
         {
@@ -66,7 +66,7 @@ const commonActionSet: ContextMenuActionSet = [
             icon: CopyIcon,
             name: "Make a copy",
             execute: (dispatch, resources) => {
-                resources.forEach(resource => dispatch<any>(openCollectionCopyDialog(resource)));
+                resources.forEach(resource => dispatch<any>(openCollectionCopyDialog(resource))); //here
             },
         },
         {