From 6a59850376874d5c82a580c81ea2c862c60db7b4 Mon Sep 17 00:00:00 2001 From: Zvonimir Fras Date: Fri, 2 Feb 2024 19:02:01 -0500 Subject: [PATCH] Fix Fragment error when customComponentsCollections undefined Signed-off-by: Zvonimir Fras --- sdk/react/src/lib/components/fragment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/react/src/lib/components/fragment.tsx b/sdk/react/src/lib/components/fragment.tsx index 89dee989..7cd9f89a 100644 --- a/sdk/react/src/lib/components/fragment.tsx +++ b/sdk/react/src/lib/components/fragment.tsx @@ -141,7 +141,7 @@ export const Fragment = ({ useEffect(() => { setAllCustomComponentsCollections([ ...(remoteCustomComponentsCollections as any[] || []).flat(), - ...customComponentsCollections + ...(customComponentsCollections || []) ]); }, [remoteCustomComponentsCollections, customComponentsCollections]);