2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:36:40 +08:00

FIX: Don't re-render if you find composer messages after destroying

This commit is contained in:
Robin Ward 2017-08-26 00:41:24 -04:00
parent b93f491035
commit a77ede05e2

View file

@ -170,6 +170,7 @@ export default Ember.Component.extend({
const queuedForTyping = this.get('queuedForTyping');
composer.store.find('composer-message', args).then(messages => {
if (this.isDestroying || this.isDestroyed) { return; }
// Checking composer messages on replies can give us a list of links to check for
// duplicates