Browse Source

fix(admin-ui): Fix dashboard widget change detection logic (#1573)

Vinicius Rosa 3 years ago
parent
commit
48bd8bd2ac

+ 1 - 1
packages/admin-ui/src/lib/dashboard/src/components/dashboard-widget/dashboard-widget.component.ts

@@ -39,7 +39,7 @@ export class DashboardWidgetComponent implements AfterViewInit, OnDestroy {
         this.componentRef = this.portal.createComponent(
             this.componentFactoryResolver.resolveComponentFactory(componentType),
         );
-        this.componentRef.changeDetectorRef.markForCheck();
+        this.componentRef.changeDetectorRef.detectChanges();
     }
 
     ngOnDestroy() {