diff --git a/src/widgets/customapi/component.jsx b/src/widgets/customapi/component.jsx index cb377628..b651045f 100644 --- a/src/widgets/customapi/component.jsx +++ b/src/widgets/customapi/component.jsx @@ -243,8 +243,8 @@ export default function Component({ service }) { ) : ( 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)]