From f5a9ac65080ad2a7955deeda2c4912c552416e01 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 22 Jun 2019 18:49:45 +0300 Subject: [PATCH] Fix bug in templateFormatter variable evaluation --- src/templateFormatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [];