From 63b9d006b7662f805b0ac7cb85baf2741bf09396 Mon Sep 17 00:00:00 2001 From: amontenegro Date: Thu, 30 Nov 2023 15:50:35 -0600 Subject: [PATCH] F --- .../work-form/work-form/work-form.component.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/record/components/work-form/work-form/work-form.component.ts b/src/app/record/components/work-form/work-form/work-form.component.ts index bd71f07d6d..a94cb98bfa 100644 --- a/src/app/record/components/work-form/work-form/work-form.component.ts +++ b/src/app/record/components/work-form/work-form/work-form.component.ts @@ -271,10 +271,13 @@ export class WorkFormComponent implements OnInit { return (control: AbstractControl) => { of(undefined) .pipe(map( () => { - if(!(formGroup.controls.externalIdentifierId.value?.lenght == 10 || formGroup.controls.externalIdentifierId.value == 13)) {return { validFormat: true, }} + if(!(formGroup.controls.externalIdentifierId.value?.lenght == 10 || formGroup.controls.externalIdentifierId.value == 13)) + { + return { validFormat: true, } + } } - )) - } + ) + )} } else { return (control: AbstractControl) => { return this._workService