mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 12:18:48 +00:00
Enhancement: add shvl fallback for custom api dynamic list (#5091)
This commit is contained in:
parent
ee7e8fab61
commit
4567427b9c
1 changed files with 2 additions and 2 deletions
|
@ -243,8 +243,8 @@ export default function Component({ service }) {
|
|||
</div>
|
||||
) : (
|
||||
listItems.map((item, index) => {
|
||||
const itemName = shvl.get(item, name, "");
|
||||
const itemLabel = shvl.get(item, label, "");
|
||||
const itemName = shvl.get(item, name, item[name]) ?? "";
|
||||
const itemLabel = shvl.get(item, label, item[label]) ?? "";
|
||||
|
||||
const itemUrl = target
|
||||
? [...target.matchAll(/\{(.*?)\}/g)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue