diff --git a/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js b/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js index 510d5aa2b227..69674ca0ba00 100644 --- a/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js +++ b/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js @@ -71,7 +71,7 @@ function genericObjectDefinitionToolbarController(API, miqService, $window) { } function postAction(response) { - var entityName = response.name; + var entityName = toolbar.entityName; var saveMsg = sprintf(__('%s:"%s" was successfully deleted'), toolbar.entity, entityName); if (toolbar.redirectUrl) { miqService.redirectBack(saveMsg, 'success', toolbar.redirectUrl);