From 9200018e6ac975327ec762f4787ae99fadaec54c Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Tue, 12 May 2020 23:54:06 +0300 Subject: [PATCH] Add default value --- .../app/modules/home/components/widget/lib/maps/maps-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts index 499768618c..608035fc39 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts @@ -152,7 +152,7 @@ function parseTemplate(template: string, data: { $datasource?: Datasource, [key: } } - const value = data[label]; + const value = data[label] || ''; let textValue: string; if (isNumber(value)) { textValue = padValue(value, valDec);