{
icon: OpenIcon,
name: "Open in new tab",
- execute: (dispatch, resource) => {
- dispatch<any>(openInNewTabAction(resource));
+ execute: (dispatch, resources) => {
+ dispatch<any>(openInNewTabAction(resources[0]));
},
},
{
icon: CopyIcon,
name: "Make a copy",
execute: (dispatch, resources) => {
- resources.forEach(resource => dispatch<any>(openCollectionCopyDialog(resource)));
+ resources.forEach(resource => dispatch<any>(openCollectionCopyDialog(resource))); //here
},
},
{