diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-04-07 12:05:04 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-04-07 13:33:29 +0200 |
commit | 064e4eba0dce450379cf9754b53d51fea68e88c1 (patch) | |
tree | 719665e4f1f48f6b2497b9d4cbdd2050ecf73963 /server/sonar-web/src/main/js | |
parent | 6c3f7ea1622a00e75bdb5070df2ae0cac6dcb52a (diff) | |
download | sonarqube-064e4eba0dce450379cf9754b53d51fea68e88c1.tar.gz sonarqube-064e4eba0dce450379cf9754b53d51fea68e88c1.zip |
do not render issues for already destroyed source viewer
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/components/source-viewer/main.js | 6 |
1 files 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 })); |