From ae97ee3b236de197e46de9eefc0d986ed7a5b4fd Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 12 Apr 2021 14:46:43 +0200 Subject: [PATCH] MOBILE-3644 core: Fix on changes in dynamic-component --- src/core/components/dynamic-component/dynamic-component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/components/dynamic-component/dynamic-component.ts b/src/core/components/dynamic-component/dynamic-component.ts index 0057964f1..d48e1b4e1 100644 --- a/src/core/components/dynamic-component/dynamic-component.ts +++ b/src/core/components/dynamic-component/dynamic-component.ts @@ -119,8 +119,8 @@ export class CoreDynamicComponent implements OnChanges, DoCheck { const changes = this.differ.diff(this.data || {}); if (changes) { this.setInputData(); - if (this.ngOnChanges) { - this.ngOnChanges(CoreDomUtils.createChangesFromKeyValueDiff(changes)); + if (this.instance.ngOnChanges) { + this.instance.ngOnChanges(CoreDomUtils.createChangesFromKeyValueDiff(changes)); } } }