diff --git a/apps/remix-ide/src/app/tabs/analysis-tab.js b/apps/remix-ide/src/app/tabs/analysis-tab.js index 7128c3fe87..bfefc6d758 100644 --- a/apps/remix-ide/src/app/tabs/analysis-tab.js +++ b/apps/remix-ide/src/app/tabs/analysis-tab.js @@ -28,6 +28,9 @@ class AnalysisTab extends ViewPlugin { } 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) this.staticanalysis.event.register('staticAnaysisWarning', (count) => { if (count > 0) {