Skip to content

Commit

Permalink
adding react children guard
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoloza committed Oct 29, 2024
1 parent 9939ac3 commit 4833c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uikit/Atoms/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Collection = {
param = deepCloneWithExtend(childrenExec)
if (childrenAs) param = param.map(v => ({ extend: childExtends, [childrenAs]: v }))
} else if (isObject(childrenExec)) {
param = deepCloneWithExtend(childrenExec)
param = deepCloneWithExtend(childrenExec.$$typeof ? { key: childrenExec.key, props: childrenExec.props } : childrenExec)
param = Object.keys(param).map(v => {
const val = param[v]
return addAdditionalExtend(v, val)
Expand Down

0 comments on commit 4833c6a

Please sign in to comment.