From ab2f5c029b6c3207ed2f996fe2625449379f5d8d Mon Sep 17 00:00:00 2001 From: Damian Date: Wed, 18 Dec 2024 20:01:55 -0500 Subject: [PATCH] Fix search --- components/Search.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/components/Search.tsx b/components/Search.tsx index f6b2a00..0822e5d 100644 --- a/components/Search.tsx +++ b/components/Search.tsx @@ -27,11 +27,6 @@ export default function Search(props: any) { [searchParams] ); - const replaceText = (text: any) => { - setSearch(text?.replace(/\w+:/, {text})); - console.log(search); - }; - const handleSearch = useDebouncedCallback((term: string) => { //replaceText(term); //setSearch(term); @@ -96,12 +91,6 @@ export default function Search(props: any) { setSelectedTerm(searchParams.get("term")?.toString().split(",")); } - if (searchTermCookie) { - params.set("query", searchTermCookie); - setSearch(searchTermCookie); - replace(`${pathname}?${params.toString()}`); - } - //searchTermCookie; }, []); @@ -166,7 +155,6 @@ export default function Search(props: any) {