Skip to content

Commit

Permalink
Update src/contexts/StateContextProvider.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Junhao Liao <[email protected]>
  • Loading branch information
Henry8192 and junhaoliao authored Dec 5, 2024
1 parent 01abd28 commit 31d9609
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/contexts/StateContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 31d9609

Please sign in to comment.