mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Enhancement: add shvl fallback for custom api dynamic list (#5091)
This commit is contained in:
parent
ee7e8fab61
commit
4567427b9c
@ -243,8 +243,8 @@ export default function Component({ service }) {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
listItems.map((item, index) => {
|
listItems.map((item, index) => {
|
||||||
const itemName = shvl.get(item, name, "");
|
const itemName = shvl.get(item, name, item[name]) ?? "";
|
||||||
const itemLabel = shvl.get(item, label, "");
|
const itemLabel = shvl.get(item, label, item[label]) ?? "";
|
||||||
|
|
||||||
const itemUrl = target
|
const itemUrl = target
|
||||||
? [...target.matchAll(/\{(.*?)\}/g)]
|
? [...target.matchAll(/\{(.*?)\}/g)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user