Skip to content

Commit

Permalink
Return null observer
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Dec 6, 2023
1 parent 9881d88 commit ba19d81
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class WorkFormComponent implements OnInit {
if (!(control.value?.length === 10 || control.value?.length === 13)) {
return of({ validFormat: true })
} else {
return of({})
return of(null)
}
} else {
return this._workService
Expand Down Expand Up @@ -517,9 +517,7 @@ export class WorkFormComponent implements OnInit {
saveEvent() {
this.workForm.markAllAsTouched()
const formErrors = GetFormErrors(this.workForm)

const allowInvalidForm = this.formHasOnlyAllowError(formErrors)

if (this.workForm.valid || allowInvalidForm) {
const work: Work = {
visibility: {
Expand Down

0 comments on commit ba19d81

Please sign in to comment.