From 23b969491deeedbf8b3a965dcd6759698d8e6cc8 Mon Sep 17 00:00:00 2001 From: Allen Benny <54641339+allenhack638@users.noreply.github.com> Date: Wed, 4 Dec 2024 22:36:23 +0530 Subject: [PATCH] fix: address search bar issue in the navbar --- 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); } }, []);