Skip to content

Commit

Permalink
Only add variables to script once
Browse files Browse the repository at this point in the history
  • Loading branch information
bthesorceror committed Apr 24, 2019
1 parent 1d6450b commit 86c6f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/flux/helpers/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const renderTemplatesInScript = async (
const interval = computeInterval(duration)
variables += `\n${INTERVAL} = ${interval}ms`

rendered = `${imports}\n${variables}\n${rendered}`
rendered = `${imports}\n${variables}\n${body}`

return rendered
}

0 comments on commit 86c6f3b

Please sign in to comment.