mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
fix: add guard for undefined SimpleChange (#15998)
This commit is contained in:
@@ -153,7 +153,8 @@ export class ManageTaxInformationComponent implements OnInit, OnDestroy, OnChang
|
||||
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
// Clear the value of the tax-id if states have been changed in the parent component
|
||||
if (!changes.showTaxIdField.currentValue) {
|
||||
const showTaxIdField = changes["showTaxIdField"];
|
||||
if (showTaxIdField && !showTaxIdField.currentValue) {
|
||||
this.formGroup.controls.taxId.setValue(null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user