From 92da032e0e1a2dbf4138b18fad8f8d1f6cdf1116 Mon Sep 17 00:00:00 2001 From: Camila Belo Date: Sun, 2 Oct 2022 10:29:59 +0200 Subject: [PATCH] feat(search-react): context provider accepts null children Signed-off-by: Camila Belo --- .../search-react/src/components/SearchResult/SearchResult.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/search-react/src/components/SearchResult/SearchResult.tsx b/plugins/search-react/src/components/SearchResult/SearchResult.tsx index a3e4c0e1f0..40c60c3263 100644 --- a/plugins/search-react/src/components/SearchResult/SearchResult.tsx +++ b/plugins/search-react/src/components/SearchResult/SearchResult.tsx @@ -36,7 +36,7 @@ export type SearchResultContextProps = { /** * A child function that receives an asynchronous result set and returns a react element. */ - children: (state: AsyncState) => JSX.Element; + children: (state: AsyncState) => JSX.Element | null; }; /**