From ff539d4837a058ed1cc72fb80ccc7cc4ca9ddc63 Mon Sep 17 00:00:00 2001 From: tizah Date: Thu, 3 Jun 2021 08:53:52 +0100 Subject: [PATCH] updated event trigger in static analyser to not show a badge when autorun is not selected --- .../static-analyser/src/lib/remix-ui-static-analyser.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx index dfbed3a928..f8b2bedd52 100644 --- a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx +++ b/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) { run(state.data, state.source, state.file) } + } else { + props.event.trigger('staticAnaysisWarning', []) + } return () => { } }, [state])