From: Stas Vilchik Date: Thu, 7 Apr 2016 10:05:04 +0000 (+0200) Subject: do not render issues for already destroyed source viewer X-Git-Tag: 5.5-RC1~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=064e4eba0dce450379cf9754b53d51fea68e88c1;p=sonarqube.git do not render issues for already destroyed source viewer --- diff --git a/server/sonar-web/src/main/js/components/source-viewer/main.js b/server/sonar-web/src/main/js/components/source-viewer/main.js index 0eb02489056..24e817c104b 100644 --- a/server/sonar-web/src/main/js/components/source-viewer/main.js +++ b/server/sonar-web/src/main/js/components/source-viewer/main.js @@ -124,8 +124,10 @@ export default Marionette.LayoutView.extend({ const opts = typeof options === 'object' ? options : {}; const finalize = function () { that.requestIssues().done(function () { - that.render(); - that.trigger('loaded'); + if (!that.isDestroyed) { + that.render(); + that.trigger('loaded'); + } }); }; _.extend(this.options, _.defaults(opts, { workspace: false }));