mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-17 18:29:48 +00:00
Enhancement: support shvl syntax for customapi fields (#5020)
This commit is contained in:
parent
8d20f22932
commit
dca23e8547
2 changed files with 18 additions and 15 deletions
|
@ -16,6 +16,11 @@ function getValue(field, data) {
|
|||
return value;
|
||||
}
|
||||
|
||||
// shvl is easier, everything else is kept for backwards compatibility.
|
||||
if (typeof field === "string") {
|
||||
return shvl.get(data, field, null);
|
||||
}
|
||||
|
||||
while (typeof lastField === "object") {
|
||||
key = Object.keys(lastField)[0] ?? null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue