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 (#5349)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-05-11 21:57:40 -04:00 committed by GitHub
parent 6d7609b364
commit 19c77eefaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,15 @@ export interface CustomResourceDetailsProps extends KubeObjectDetailsProps<KubeO
function convertSpecValue(value: any): any { function convertSpecValue(value: any): any {
if (Array.isArray(value)) { 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") { if (typeof value === "object") {