Commit 9200018e6ac975327ec762f4787ae99fadaec54c

Authored by Vladyslav_Prykhodko
1 parent 2f622a2e

Add default value

@@ -152,7 +152,7 @@ function parseTemplate(template: string, data: { $datasource?: Datasource, [key: @@ -152,7 +152,7 @@ function parseTemplate(template: string, data: { $datasource?: Datasource, [key:
152 } 152 }
153 } 153 }
154 154
155 - const value = data[label]; 155 + const value = data[label] || '';
156 let textValue: string; 156 let textValue: string;
157 if (isNumber(value)) { 157 if (isNumber(value)) {
158 textValue = padValue(value, valDec); 158 textValue = padValue(value, valDec);