Skip to content

Commit a581ce2

Browse files
committed
fix: COM-276
1 parent 55e9575 commit a581ce2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ui/src/lib/form/form.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ export class FormService {
2828
.filter((field) => this.shouldBePartOfForm(field, form))
2929
.forEach((field) => {
3030
const validators = this.getValidators(field);
31+
let value = form.getValue(field.property);
32+
value = value === undefined ? null : value;
3133
controls[field.property] = new FormControl(
3234
{
33-
value: form.getValue(field.property),
35+
value,
3436
disabled: this.isReadOnly(field, form),
3537
},
3638
validators,

0 commit comments

Comments
 (0)