From 371bc43671b4c13fe30e529d86414c4d980b85cc Mon Sep 17 00:00:00 2001 From: Fahri Gedik <53567152+fahrigedik@users.noreply.github.com> Date: Thu, 5 Feb 2026 17:55:22 +0300 Subject: [PATCH] Guard against missing data in ExtensibleFormProp Return early in ExtensibleFormPropComponent effect when this.data()?.data is falsy. Previously the effect only checked currentProp and could attempt to access properties on undefined data, causing runtime errors; this adds a defensive check to avoid that. --- .../extensible-form/extensible-form-prop.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts index 13fca04c73..12bec8bdb3 100644 --- a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts +++ b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts @@ -120,7 +120,7 @@ export class ExtensibleFormPropComponent implements AfterViewInit { effect(() => { const currentProp = this.prop(); const data = this.data()?.data; - if (!currentProp) return; + if (!currentProp || !data) return; const { options, readonly, disabled, validators, className, template } = currentProp;