diff --git a/src/plugins/kibana/public/settings/sections/objects/_objects.js b/src/plugins/kibana/public/settings/sections/objects/_objects.js index c237b3e4823f5..1a3938aeeb647 100644 --- a/src/plugins/kibana/public/settings/sections/objects/_objects.js +++ b/src/plugins/kibana/public/settings/sections/objects/_objects.js @@ -83,9 +83,12 @@ uiModules.get('apps/settings') }; $scope.bulkDelete = function () { - $scope.currentTab.service.delete(pluck($scope.selectedItems, 'id')).then(refreshData).then(function () { + $scope.currentTab.service.delete(pluck($scope.selectedItems, 'id')) + .then(refreshData) + .then(function () { $scope.selectedItems.length = 0; - }); + }) + .catch(error => notify.error(error)); }; $scope.bulkExport = function () {