Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
duluca committed Jan 4, 2024
1 parent fe07830 commit daa509a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class NameInputComponent
}

ngOnChanges(changes: SimpleChanges) {
this.disable ? this.formGroup.disable() : this.formGroup.enable()
this.disable ? this.formGroup?.disable() : this.formGroup?.enable()
this.patchUpdatedDataIfChanged(changes)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class NameInputComponent
}

ngOnChanges(changes: SimpleChanges) {
this.disable ? this.formGroup.disable() : this.formGroup.enable()
this.disable ? this.formGroup?.disable() : this.formGroup?.enable()
this.patchUpdatedDataIfChanged(changes)
}
}
2 changes: 1 addition & 1 deletion src/app/user/name-input/name-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class NameInputComponent
}

ngOnChanges(changes: SimpleChanges) {
this.disable ? this.formGroup.disable() : this.formGroup.enable()
this.disable ? this.formGroup?.disable() : this.formGroup?.enable()
this.patchUpdatedDataIfChanged(changes)
}
}

0 comments on commit daa509a

Please sign in to comment.