Browse Source

Add default value

pull/2765/head
Vladyslav_Prykhodko 6 years ago
parent
commit
9200018e6a
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts

2
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; let textValue: string;
if (isNumber(value)) { if (isNumber(value)) {
textValue = padValue(value, valDec); textValue = padValue(value, valDec);

Loading…
Cancel
Save