From a9bc0b25b8ac968b1ddc71dc622d25a1793d6cf2 Mon Sep 17 00:00:00 2001 From: Allen Benny <54641339+allenhack638@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:06:59 +0530 Subject: [PATCH] fix: address search bar issue in the navbar (#3447) Co-authored-by: Ansh Goyal --- components/AlgoliaSearch.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/AlgoliaSearch.tsx b/components/AlgoliaSearch.tsx index a7d3604fafb7..06d37889c473 100644 --- a/components/AlgoliaSearch.tsx +++ b/components/AlgoliaSearch.tsx @@ -312,6 +312,8 @@ export function SearchButton({ children, indexName = INDEX_NAME, ...props }: ISe useEffect(() => { if (typeof children === 'function') { setChildren(children({ actionKey })); + } else { + setChildren(children); } }, []);