mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
fix: extra checks for tag get() function
This commit is contained in:
parent
ab54dc215f
commit
3064a05b4d
2 changed files with 5 additions and 2 deletions
|
@ -30,7 +30,7 @@ export async function renderTagBody(
|
|||
return val;
|
||||
},
|
||||
get(name) {
|
||||
return dynamicVars[name] == null ? "" : dynamicVars[name];
|
||||
return !dynamicVars.hasOwnProperty(name) || dynamicVars[name] == null ? "" : dynamicVars[name];
|
||||
},
|
||||
tag: async (name, ...subTagArgs) => {
|
||||
if (++tagFnCallsObj.calls > MAX_TAG_FN_CALLS) return "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue