feat: optional formGroup
This commit is contained in:
parent
7c244f05ae
commit
86f9aec40d
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import {FormGroup} from './form-group';
|
|||
const form: FormGroup = Astro.props.formGroup;
|
||||
---
|
||||
<form>
|
||||
{form.controls.map(control => (
|
||||
{form?.controls?.map(control => (
|
||||
<field>
|
||||
<label for={control.name}>{control.label}</label>
|
||||
<input name={control.name} id={control.name} type={control.type} value={control.value} />
|
||||
|
|
Loading…
Reference in a new issue