MOBILE-3644 core: Fix on changes in dynamic-component

main
Dani Palou 2021-04-12 14:46:43 +02:00
parent 8f991cecd0
commit ae97ee3b23
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}
}