mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 06:08:48 +00:00
Fix: add fallback for shvl syntax
This commit is contained in:
parent
0a50d5a6aa
commit
2cabe77b55
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ function getValue(field, data) {
|
|||
|
||||
// shvl is easier, everything else is kept for backwards compatibility.
|
||||
if (typeof field === "string") {
|
||||
return shvl.get(data, field, null);
|
||||
return shvl.get(data, field, null) ?? data[field] ?? null;
|
||||
}
|
||||
|
||||
while (typeof lastField === "object") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue