diff --git a/src/templateFormatter.ts b/src/templateFormatter.ts index bc4b0209..3149eb53 100644 --- a/src/templateFormatter.ts +++ b/src/templateFormatter.ts @@ -218,7 +218,7 @@ export function parseTemplate(str: string): ParsedTemplate { } 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") { const args = [];