mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Fix bug in templateFormatter variable evaluation
This commit is contained in:
parent
5a91d36953
commit
f5a9ac6508
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,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) ? get(values, theVar.identifier)[0] : undefined;
|
const value = has(values, theVar.identifier) ? get(values, theVar.identifier) : undefined;
|
||||||
|
|
||||||
if (typeof value === "function") {
|
if (typeof value === "function") {
|
||||||
const args = [];
|
const args = [];
|
||||||
|
|
Loading…
Add table
Reference in a new issue