reset warnings and errors correctly

pull/3838/head
Joseph Izang 1 year ago
parent 43cd366530
commit 1de29961c4
  1. 6
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -107,11 +107,17 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}
useEffect(() => {
setHints([])
setSlitherWarnings([])
setSsaWarnings([])
compilation(props.analysisModule, dispatch)
}, [props])
useEffect(() => {
setWarningState({})
setHints([])
setSlitherWarnings([])
setSsaWarnings([])
const runAnalysis = async () => {
await run(state.data, state.source, state.file, state, props, isSupportedVersion, showSlither, categoryIndex, groupedModules, runner,_paq, message, showWarnings, allWarnings, warningContainer,calculateWarningStateEntries, warningState, setHints, hints, setSlitherWarnings, setSsaWarnings, slitherEnabled, setStartAnalysis)
}

Loading…
Cancel
Save