Skip to content

Commit fb9051c

Browse files
authored
Merge pull request #1061 from mischkl/patch-1
Fix #1060 error on DynamicFormService.detectChanges()
2 parents 4c8dd0c + fb9527e commit fb9051c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/ng-dynamic-forms/core/src/lib/component/dynamic-form-control-container.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export abstract class DynamicFormControlContainerComponent implements OnChanges,
169169

170170
this.changeDetectorRef.markForCheck();
171171

172-
const component = this.componentRef.instance;
172+
const component = this.componentRef && this.componentRef.instance;
173173

174174
if (component && (component instanceof DynamicFormGroupComponent || component instanceof DynamicFormArrayComponent)) {
175175
component.markForCheck();

0 commit comments

Comments
 (0)