Skip to content

Commit

Permalink
fix: add optional chaining to search-dependant
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Jul 3, 2024
1 parent eaa163a commit 55843af
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,14 @@ export class ZhSearchDependantComponent implements OnInit {
this.enable();
this._inputData = value;
} else {
if (this.form) {
this.form.reset();
}
this.form?.reset();
this.disable();
}
}
disable() {
this.form.disable();
this.form?.disable();
}
enable() {
this.form.enable();
this.form?.enable();
}
}

0 comments on commit 55843af

Please sign in to comment.