Add default value
This commit is contained in:
parent
2f622a2e72
commit
9200018e6a
@ -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…
x
Reference in New Issue
Block a user