From 2f7d7927649d7ae35ab0fcc5cc1f1977e889b6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aappo=20=C3=85lander?= Date: Fri, 19 Mar 2021 09:40:03 +0200 Subject: [PATCH] Fix SSR issue with AutoId. --- src/utils/AutoId.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/AutoId.tsx b/src/utils/AutoId.tsx index 6287f7915..d8ae6a602 100644 --- a/src/utils/AutoId.tsx +++ b/src/utils/AutoId.tsx @@ -44,5 +44,5 @@ export const AutoId = ({ children: (passedId: string) => JSX.Element; }) => { const generatedId = useGeneratedId(id); - return generatedId ? children(generatedId) : null; + return children(!!generatedId ? generatedId : ''); };