From 31d9609204dbb26511ad406ec74c1c60eaad83f1 Mon Sep 17 00:00:00 2001 From: Henry8192 <50559854+Henry8192@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:20:08 -0500 Subject: [PATCH] Update src/contexts/StateContextProvider.tsx Co-authored-by: Junhao Liao --- src/contexts/StateContextProvider.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/contexts/StateContextProvider.tsx b/src/contexts/StateContextProvider.tsx index cb6f6851..d26e0ad0 100644 --- a/src/contexts/StateContextProvider.tsx +++ b/src/contexts/StateContextProvider.tsx @@ -362,8 +362,11 @@ const StateContextProvider = ({children}: StateContextProviderProps) => { } }, [postPopUp]); - const startQuery = useCallback((queryArgs: QueryArgs) => { - const {queryString, isRegex, isCaseSensitive} = queryArgs; + const startQuery = useCallback(({ + isCaseSensitive, + isRegex, + queryString, + }: QueryArgs) => { setQueryResults(STATE_DEFAULT.queryResults); if (null === mainWorkerRef.current) { console.error("Unexpected null mainWorkerRef.current");