diff --git a/src/components/uniforms-frontmatter/ListField.tsx b/src/components/uniforms-frontmatter/ListField.tsx index 3e9e23a5..95d64d05 100644 --- a/src/components/uniforms-frontmatter/ListField.tsx +++ b/src/components/uniforms-frontmatter/ListField.tsx @@ -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,