From c53eadd9242b05546ad3a56914f4ca978780c08e Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Thu, 29 May 2025 11:06:51 +0300 Subject: [PATCH] UI: Refactoring --- .../widget/lib/chart/time-series-chart-tooltip.models.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-tooltip.models.ts b/ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-tooltip.models.ts index f40e95276e..713e7b9373 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-tooltip.models.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-tooltip.models.ts @@ -130,11 +130,7 @@ export class TimeSeriesChartTooltip { this.renderer.appendChild(tooltipItemsElement, this.constructTooltipDateElement(items[0].param, interval)); } for (const item of items) { - if (this.settings.tooltipHideZeroFalse) { - if (item.param.value[1]) { - this.renderer.appendChild(tooltipItemsElement, this.constructTooltipSeriesElement(item)); - } - } else { + if (!this.settings.tooltipHideZeroFalse || item.param.value[1]) { this.renderer.appendChild(tooltipItemsElement, this.constructTooltipSeriesElement(item)); } }