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:
parent
6d7609b364
commit
19c77eefaf
@ -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") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user