diff --git a/src/components/ui/SchemaRenderer.tsx b/src/components/ui/SchemaRenderer.tsx index 29f5e9b..d06e915 100644 --- a/src/components/ui/SchemaRenderer.tsx +++ b/src/components/ui/SchemaRenderer.tsx @@ -12,7 +12,7 @@ type SchemaRendererProps = { const SchemaRenderer = (props: SchemaRendererProps) => { const { schema, errors, register } = props; - return schema.fields.map((field) => { + return schema.fields.map((field, index) => { if (field.type === "field") { return ( { } return ( - + ); }); };