From e72a7e862058dd1d56dbb746eebc5096436d503a Mon Sep 17 00:00:00 2001 From: Jorge Padilla Date: Tue, 30 Jan 2024 14:54:23 -0500 Subject: [PATCH] fix(frontend): clear selected span in test mode (#3581) --- web/src/providers/Span/Span.provider.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/providers/Span/Span.provider.tsx b/web/src/providers/Span/Span.provider.tsx index fd9957b4fc..99f0e7cef8 100644 --- a/web/src/providers/Span/Span.provider.tsx +++ b/web/src/providers/Span/Span.provider.tsx @@ -60,6 +60,7 @@ const SpanProvider = ({children}: IProps) => { return () => { dispatch(RouterActions.updateSearch({[RouterSearchFields.SelectedSpan]: ''})); dispatch(clearMatchedSpans()); + dispatch(clearSelectedSpan()); }; }, [dispatch]);