3
0
Fork 0
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:
Dragory 2023-04-01 21:34:14 +03:00
parent ab54dc215f
commit 3064a05b4d
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
2 changed files with 5 additions and 2 deletions

View file

@ -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 "";