Skip to content

Commit 9c172e6

Browse files
committed
Removing the email validators, since some have more than one in this field seperated by ; and we currently don't have a workaround for it.
1 parent 73ea882 commit 9c172e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eform-client/src/app/plugins/modules/backend-configuration-pn/components/properties/property-actions/property-create-modal/property-create-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class PropertyCreateModalComponent implements OnInit, OnDestroy {
4040
// Initialize reactive form
4141
this.newPropertyForm = this.fb.group({
4242
cvr: ['', Validators.required],
43-
mainMailAddress: ['', [Validators.required, Validators.email]],
43+
mainMailAddress: [''],
4444
name: ['', Validators.required],
4545
chr: [''],
4646
address: [''],

eform-client/src/app/plugins/modules/backend-configuration-pn/components/properties/property-actions/property-edit-modal/property-edit-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class PropertyEditModalComponent implements OnInit, OnDestroy {
4545

4646
this.editPropertyForm = this.fb.group({
4747
cvr: [model.cvr, Validators.required],
48-
mainMailAddress: [model.mainMailAddress, [Validators.required, Validators.email]],
48+
mainMailAddress: [model.mainMailAddress],
4949
name: [model.name, Validators.required],
5050
chr: [model.chr],
5151
address: [model.address],

0 commit comments

Comments
 (0)