diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx index 18703906d824..57ab317e3bf7 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx @@ -550,8 +550,24 @@ export class SavedObjectsTable extends Component item.id); + const successObjectsToDuplicate = objectsToDuplicate.filter((item) => + successObjectIds.includes(item.id) + ); + result = await duplicateSavedObjects( + http, + successObjectsToDuplicate, + includeReferencesDeep, + targetWorkspace + ); + if (result.success) { + failedCount -= successObjectsToDuplicate.length; + } + } + notifications.toasts.addDanger({ title: i18n.translate( 'savedObjectsManagement.objectsTable.duplicate.dangerNotification', { @@ -563,7 +579,8 @@ export class SavedObjectsTable extends Component