From 793a706d2addb90f7cdf09883cdbc5c969df8ac9 Mon Sep 17 00:00:00 2001 From: Maksym Tsymbarov Date: Thu, 16 Apr 2026 12:33:04 +0200 Subject: [PATCH] Fix "No data" overlay not hiding when widget data becomes available after empty state --- .../modules/home/components/widget/widget.component.ts | 9 +++++++++ 1 file changed, 9 insertions(+) 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 c42a4c6b48..0e498ba139 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 @@ -570,6 +570,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) { @@ -930,6 +931,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(() => { @@ -944,6 +949,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 {