Replace fix

This commit is contained in:
Elio Struyf
2022-02-28 17:34:53 +01:00
parent c30f401c4f
commit c9c38ef10b
@@ -31,7 +31,7 @@ function List({
isValidElement(child)
? cloneElement(child, {
key: `${itemIndex}-${childIndex}`,
name: child.props.name?.replace('$', '' + itemIndex),
name: (child.props.name || "").replace('$', '' + itemIndex),
...itemProps,
})
: child,