Fix: add fallback for shvl syntax

This commit is contained in:
shamoon 2025-03-27 20:15:39 -07:00
parent 0a50d5a6aa
commit 2cabe77b55
No known key found for this signature in database

View File

@ -18,7 +18,7 @@ function getValue(field, data) {
// shvl is easier, everything else is kept for backwards compatibility. // shvl is easier, everything else is kept for backwards compatibility.
if (typeof field === "string") { if (typeof field === "string") {
return shvl.get(data, field, null); return shvl.get(data, field, null) ?? data[field] ?? null;
} }
while (typeof lastField === "object") { while (typeof lastField === "object") {