check for view in SA plugin`

pull/5370/head
lianahus 4 years ago committed by Liana Husikyan
parent 488ebe43fb
commit d8a3cd236f
  1. 3
      apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js

@ -211,6 +211,9 @@ staticAnalysisView.prototype.checkModule = function (event) {
}
}
staticAnalysisView.prototype.correctRunBtnDisabled = function () {
if (!this.view) {
return
}
const selected = this.view.querySelectorAll('[name="staticanalysismodule"]:checked')
if (this.lastCompilationResult && selected.length !== 0) {
this.runBtn.removeAttribute('disabled')

Loading…
Cancel
Save