check for view in SA plugin`

pull/780/head^2
lianahus 4 years ago committed by Liana Husikyan
parent 77fbd184e7
commit c6898f1dae
  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