Unverified Commit 37a2071a authored by bunsenstraat's avatar bunsenstraat Committed by GitHub

Merge pull request #1404 from ethereum/ssaEffectFix

fix react useeffect to reset analysis plugin on workspace change after reactivation
parents 5ab0c821 4f151cf4
...@@ -91,7 +91,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { ...@@ -91,7 +91,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
if (currentWorkspace && currentWorkspace.isLocalhost === true) setShowSlither('visible') if (currentWorkspace && currentWorkspace.isLocalhost === true) setShowSlither('visible')
}) })
return () => { } return () => { }
}, [props.analysisModule]) }, [props])
const message = (name, warning, more, fileName, locationString) : string => { const message = (name, warning, more, fileName, locationString) : string => {
return (` return (`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment