diff --git a/src/widgets/customapi/component.jsx b/src/widgets/customapi/component.jsx index c2ed090be..5ad0a2c47 100644 --- a/src/widgets/customapi/component.jsx +++ b/src/widgets/customapi/component.jsx @@ -137,13 +137,37 @@ export default function Component({ service }) { } if (!customData) { - return ( - - {mappings.slice(0, 4).map((item) => ( - - ))} - - ); + switch (display) { + case "list": + return ( + + + {mappings.map((mapping) => ( + + {mapping.label} + + + - + + + + ))} + + + ); + + default: + return ( + + {mappings.slice(0, 4).map((item) => ( + + ))} + + ); + } } switch (display) {