Skip to content

Commit 4e11232

Browse files
committed
Correctly revert default view after mass image deletion
1 parent 18da36b commit 4e11232

File tree

1 file changed

+1
-3
lines changed
  • app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/massaction

1 file changed

+1
-3
lines changed

app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/massaction/massactions.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ define([
141141
if (response.status === 'canceled') {
142142
return;
143143
}
144-
this.imageModel().selected({});
145-
this.massActionMode(false);
146-
this.switchMode();
144+
$(window).trigger('terminateMassAction.MediaGallery');
147145
}.bind(this));
148146
}
149147
}.bind(this));

0 commit comments

Comments
 (0)