reset staticAnalysis after deactivation

pull/862/head
aniket-engg 4 years ago
parent 64086a2006
commit b109c28462
  1. 3
      apps/remix-ide/src/app/tabs/analysis-tab.js

@ -28,6 +28,9 @@ class AnalysisTab extends ViewPlugin {
} }
render () { render () {
const listOfPlugins = localStorage.getItem('workspace')
// Reset state if plugin is deactivated
if (!listOfPlugins.includes('solidityStaticAnalysis')) this.staticanalysis = null
if (!this.staticanalysis) this.staticanalysis = new StaticAnalysis(this.registry, this) if (!this.staticanalysis) this.staticanalysis = new StaticAnalysis(this.registry, this)
this.staticanalysis.event.register('staticAnaysisWarning', (count) => { this.staticanalysis.event.register('staticAnaysisWarning', (count) => {
if (count > 0) { if (count > 0) {

Loading…
Cancel
Save