From 064e4eba0dce450379cf9754b53d51fea68e88c1 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 7 Apr 2016 12:05:04 +0200 Subject: [PATCH] do not render issues for already destroyed source viewer --- .../sonar-web/src/main/js/components/source-viewer/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 })); -- 2.39.5