diff --git a/ui-ngx/src/app/modules/home/components/widget/widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/widget.component.ts index cb96a493a1..fd50a42fee 100644 --- a/ui-ngx/src/app/modules/home/components/widget/widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/widget.component.ts @@ -571,6 +571,7 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges, this.cafs.init = this.raf.raf(() => { try { if (this.displayWidgetInstance()) { + this.displayNoData = false; this.widgetTypeInstance.onInit(); this.widgetInstanceInited = true; if (this.dataUpdatePending) { @@ -931,6 +932,10 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges, onDataUpdated: () => { try { if (this.displayWidgetInstance()) { + if (this.displayNoData) { + this.displayNoData = false; + this.detectChanges(); + } if (this.widgetInstanceInited) { this.widgetTypeInstance.onDataUpdated(); setTimeout(() => { @@ -945,6 +950,10 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges, onLatestDataUpdated: () => { try { if (this.displayWidgetInstance()) { + if (this.displayNoData) { + this.displayNoData = false; + this.detectChanges(); + } if (this.widgetInstanceInited) { this.widgetTypeInstance.onLatestDataUpdated(); } else {