When deleting media grid attachments, wait until the server responds before removing the model from its collection.
Props 5um17. Fixes #30457. git-svn-id: https://develop.svn.wordpress.org/trunk@30638 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8813419225
commit
ac2c986831
@ -6405,7 +6405,7 @@
|
||||
changed.push( model.save() );
|
||||
removed.push( model );
|
||||
} else {
|
||||
model.destroy();
|
||||
model.destroy({wait: true});
|
||||
}
|
||||
} );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user