From c609d929feba9ea46bc262f675ce122fd3e9854c Mon Sep 17 00:00:00 2001 From: Brandon Farmer Date: Tue, 23 Apr 2019 14:21:57 -0700 Subject: [PATCH] Fix dashboard time injection --- ui/src/flux/helpers/templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/flux/helpers/templates.ts b/ui/src/flux/helpers/templates.ts index 9a5978807..b851c19d1 100644 --- a/ui/src/flux/helpers/templates.ts +++ b/ui/src/flux/helpers/templates.ts @@ -30,7 +30,7 @@ export const renderTemplatesInScript = async ( const {imports, body} = await extractImports(astLink, script) if (body.match(UPPER_DASHBOARD_TIME) || body.match(DASHBOARD_TIME)) { - return `%{imports}\n%{body}` + return `${imports}\n${body}` } let variables = `${DASHBOARD_TIME} = ${dashboardTime}\n${UPPER_DASHBOARD_TIME} = ${upperDashboardTime}`