mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: don't set properties on destroyed components
This commit is contained in:
parent
ea9c1e5cf8
commit
779efd9235
2 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,7 @@ export default Ember.Component.extend({
|
|||
previous: this.get('previousState'),
|
||||
current: this.get('currentState')
|
||||
}).then(r => {
|
||||
if (this.get('isDestroyed')) { return; }
|
||||
this.set('presenceUsers', r.users);
|
||||
this.set('channel', r.messagebus_channel);
|
||||
this.messageBus.subscribe(r.messagebus_channel, message => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue