From 06d2a2abc1c12c48826d70b53ed211110ffa858a Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Tue, 21 Nov 2023 15:12:05 +0200 Subject: [PATCH] UI: Fixed card widget display only numeric value --- .../widget/lib/cards/value-card-widget.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/cards/value-card-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/cards/value-card-widget.component.ts index a80d1d850b..c849469c7f 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/cards/value-card-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/cards/value-card-widget.component.ts @@ -27,7 +27,7 @@ import { ViewChild } from '@angular/core'; import { WidgetContext } from '@home/models/widget-component.models'; -import { formatValue, isDefinedAndNotNull, isNumeric } from '@core/utils'; +import { formatValue, isDefinedAndNotNull } from '@core/utils'; import { backgroundStyle, ColorProcessor, @@ -179,7 +179,7 @@ export class ValueCardWidgetComponent implements OnInit, AfterViewInit, OnDestro const tsValue = getSingleTsValue(this.ctx.data); let ts; let value; - if (tsValue && isDefinedAndNotNull(tsValue[1]) && isNumeric(tsValue[1])) { + if (tsValue && isDefinedAndNotNull(tsValue[1])) { ts = tsValue[0]; value = tsValue[1]; this.valueText = formatValue(value, this.decimals, this.units, false);