From 893b6d83cf95620773877fd5804e0c53c69f9192 Mon Sep 17 00:00:00 2001 From: Allen Benny <54641339+allenhack638@users.noreply.github.com> Date: Wed, 4 Dec 2024 00:27:49 +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..6f5281944fd8 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); } }, []);