From 98a2827a4a4128a2ea7368ebb7878b3e16272803 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 17 Mar 2022 12:11:37 -0400 Subject: [PATCH] Fix navigator search --- src/components/navigator/NavigatorView.tsx | 2 -- src/components/navigator/views/search/NavigatorSearchView.tsx | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/navigator/NavigatorView.tsx b/src/components/navigator/NavigatorView.tsx index 004e4bc9..0f65ba0d 100644 --- a/src/components/navigator/NavigatorView.tsx +++ b/src/components/navigator/NavigatorView.tsx @@ -235,8 +235,6 @@ export const NavigatorView: FC<{}> = props => { if(!isVisible || !LAST_SEARCH || !LAST_SEARCH.length) return; - console.log(LAST_SEARCH) - CreateLinkEvent(`navigator/search/${ LAST_SEARCH }`); }, [ isVisible ]); diff --git a/src/components/navigator/views/search/NavigatorSearchView.tsx b/src/components/navigator/views/search/NavigatorSearchView.tsx index 9f975150..c09d3f0c 100644 --- a/src/components/navigator/views/search/NavigatorSearchView.tsx +++ b/src/components/navigator/views/search/NavigatorSearchView.tsx @@ -47,6 +47,8 @@ export const NavigatorSearchView: FC = props => useEffect(() => { + if(!searchResult || !searchResult.data) return; + const searchResultDataParts = searchResult.data.split(':'); LAST_SEARCH = `${ topLevelContext.code }/${ searchResult.data }`;