mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-06 07:22:07 +08:00
Fix: add fallback for shvl syntax
This commit is contained in:
@@ -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") {
|
||||||
|
|||||||
Reference in New Issue
Block a user