1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix CustomResourceDetails merging arrays of values

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-05-06 15:11:07 -04:00
parent fc45f06fc8
commit 312ffc7f3d

View File

@ -27,7 +27,15 @@ export interface CustomResourceDetailsProps extends KubeObjectDetailsProps<KubeO
function convertSpecValue(value: any): any {
if (Array.isArray(value)) {
return value.map(convertSpecValue);
return (
<ul>
{value.map((value, index) => (
<li key={index}>
{convertSpecValue(value)}
</li>
))}
</ul>
);
}
if (typeof value === "object") {