Enhancement: add shvl fallback for custom api dynamic list (#5091)

This commit is contained in:
shamoon 2025-03-28 16:32:56 -07:00 committed by GitHub
parent ee7e8fab61
commit 4567427b9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)]