mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
templateFormatter: fix unknown values showing up as "false"
This commit is contained in:
parent
24e16078ec
commit
74cce3d093
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ export function parseTemplate(str: string): ParsedTemplate {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function evaluateTemplateVariable(theVar: ITemplateVar, values) {
|
async function evaluateTemplateVariable(theVar: ITemplateVar, values) {
|
||||||
const value = has(values, theVar.identifier) && at(values, theVar.identifier)[0];
|
let value = has(values, theVar.identifier) ? at(values, theVar.identifier)[0] : undefined;
|
||||||
|
|
||||||
if (typeof value === "function") {
|
if (typeof value === "function") {
|
||||||
const args = [];
|
const args = [];
|
||||||
|
|
Loading…
Add table
Reference in a new issue