mirror of
https://github.com/documize/community.git
synced 2025-07-22 14:49:42 +02:00
Prevent ember actions on destroyed objects
This commit is contained in:
parent
455a384eb0
commit
fb8adc6491
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ export default Component.extend(ModalMixin, {
|
|||
type: 'GET',
|
||||
dataType: 'html',
|
||||
success: function (response) {
|
||||
if (self.get('isDestroyed') || self.get('isDestroying')) return;
|
||||
self.set('newsContent', response);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue