Fix CustomResourceDetails merging arrays of values (#5349)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-05-11 21:57:40 -04:00
1 parent 6d7609b364
commit 19c77eefaf
1 file changed
+9 -1
@@ -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") {