diff --git a/components/AlgoliaSearch.tsx b/components/AlgoliaSearch.tsx index a7d3604fafb..afcc7fe10f2 100644 --- a/components/AlgoliaSearch.tsx +++ b/components/AlgoliaSearch.tsx @@ -313,6 +313,9 @@ export function SearchButton({ children, indexName = INDEX_NAME, ...props }: ISe if (typeof children === 'function') { setChildren(children({ actionKey })); } + else { + setChildren(children); + } }, []); return (