Add default value

This commit is contained in:
Vladyslav_Prykhodko 2020-05-12 23:54:06 +03:00
parent 2f622a2e72
commit 9200018e6a

View File

@ -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);