A platform for community discussion. Free, open, simple.
DEV: Check if screen-track was destroyed (#17509)
Jarek Radosz7cf95e6339a8
diff --git a/app/assets/javascripts/discourse/app/services/screen-track.js b/app/assets/javascripts/discourse/app/services/screen-track.jsindex ae799f26245..d6c73ebbc99 100644--- a/app/assets/javascripts/discourse/app/services/screen-track.js+++ b/app/assets/javascripts/discourse/app/services/screen-track.js@@ -183,6 +183,10 @@ export default class ScreenTrack extends Service {},}).then(() => {+ if (this.isDestroying || this.isDestroyed) {+ return;+ }+this._ajaxFailures = 0;const topicController = this._topicController;if (topicController) {