Prevent auto refreshing MailPoet listing components when any items are selected
This is to prevent losing the selected state [MAILPOET-6493]
This commit is contained in:
committed by
Ján Mikláš
parent
c57844cb05
commit
afc27fabd6
@ -34,7 +34,10 @@ class ListingComponent extends Component {
|
||||
|
||||
if (autoRefresh) {
|
||||
jQuery(document).on('heartbeat-tick.mailpoet', () => {
|
||||
this.getItems();
|
||||
// Skip auto-refresh if any items are selected for bulk editing
|
||||
if (this.state.selected_ids.length === 0) {
|
||||
this.getItems();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user