From 642216a070edaf75597348e80cd081ea636c6e83 Mon Sep 17 00:00:00 2001 From: Stephon Brown Date: Thu, 14 Aug 2025 11:48:00 -0400 Subject: [PATCH] fix: add guard for undefined SimpleChange (#15998) --- .../manage-tax-information/manage-tax-information.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/angular/src/billing/components/manage-tax-information/manage-tax-information.component.ts b/libs/angular/src/billing/components/manage-tax-information/manage-tax-information.component.ts index 04dbf3dee8..0b87f3f931 100644 --- a/libs/angular/src/billing/components/manage-tax-information/manage-tax-information.component.ts +++ b/libs/angular/src/billing/components/manage-tax-information/manage-tax-information.component.ts @@ -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); } }