updated event trigger in static analyser to not show a badge when autorun is not selected

pull/5370/head
tizah 4 years ago committed by Liana Husikyan
parent 2ee0f8ae95
commit 70dac70cc5
  1. 3
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -71,6 +71,9 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
if (state.data !== null) { if (state.data !== null) {
run(state.data, state.source, state.file) run(state.data, state.source, state.file)
} }
} else {
props.event.trigger('staticAnaysisWarning', [])
} }
return () => { } return () => { }
}, [state]) }, [state])

Loading…
Cancel
Save