mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
fix crash with map
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
6548379369
commit
12d59bc238
1 changed files with 1 additions and 0 deletions
|
@ -538,6 +538,7 @@ const baseValues = {
|
|||
return math_constants[str.toLowerCase()] ?? "";
|
||||
},
|
||||
map(obj, key) {
|
||||
if (typeof obj !== "object" || typeof key !== "string" || typeof obj === "function" || !obj) return "";
|
||||
if (Array.isArray(obj)) {
|
||||
return obj.map((tobj) => tobj[key]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue