Skip to content

Commit

Permalink
Fix Fragment error when customComponentsCollections undefined
Browse files Browse the repository at this point in the history
Signed-off-by: Zvonimir Fras <[email protected]>
  • Loading branch information
zvonimirfras committed Feb 3, 2024
1 parent 69dd6e8 commit 6a59850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/react/src/lib/components/fragment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const Fragment = ({
useEffect(() => {
setAllCustomComponentsCollections([
...(remoteCustomComponentsCollections as any[] || []).flat(),
...customComponentsCollections
...(customComponentsCollections || [])
]);
}, [remoteCustomComponentsCollections, customComponentsCollections]);

Expand Down

0 comments on commit 6a59850

Please sign in to comment.