diff options
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 })); |