Skip to content

Commit 6a59850

Browse files
committed
Fix Fragment error when customComponentsCollections undefined
Signed-off-by: Zvonimir Fras <zvonimir@zvonimirfras.com>
1 parent 69dd6e8 commit 6a59850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/react/src/lib/components/fragment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const Fragment = ({
141141
useEffect(() => {
142142
setAllCustomComponentsCollections([
143143
...(remoteCustomComponentsCollections as any[] || []).flat(),
144-
...customComponentsCollections
144+
...(customComponentsCollections || [])
145145
]);
146146
}, [remoteCustomComponentsCollections, customComponentsCollections]);
147147

0 commit comments

Comments
 (0)