mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Extra fix
This commit is contained in:
parent
bfb7379279
commit
9dbf80ce58
2 changed files with 6 additions and 0 deletions
|
@ -222,6 +222,11 @@ async function evaluateTemplateVariable(theVar: ITemplateVar, values) {
|
|||
const value = has(values, theVar.identifier) ? get(values, theVar.identifier) : undefined;
|
||||
|
||||
if (typeof value === "function") {
|
||||
// Don't allow running functions in nested objects
|
||||
if (values[theVar.identifier] == null) {
|
||||
return "";
|
||||
}
|
||||
|
||||
const args = [];
|
||||
for (const arg of theVar.args) {
|
||||
if (typeof arg === "object") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue