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

fix "not valid as a React child" error while display crds with column which type is object

Signed-off-by: liuhongyu <lhy990409@gmail.com>
This commit is contained in:
liuhongyu 2020-12-14 20:06:17 +08:00
parent 3300a99a78
commit 8255856d1a

View File

@ -93,7 +93,7 @@ export class CrdResources extends React.Component<Props> {
isNamespaced && crdInstance.getNs(), isNamespaced && crdInstance.getNs(),
...extraColumns.map(column => ({ ...extraColumns.map(column => ({
renderBoolean: true, renderBoolean: true,
children: jsonPath.value(crdInstance, column.jsonPath.slice(1)), children: JSON.stringify(jsonPath.value(crdInstance, column.jsonPath.slice(1))),
})), })),
crdInstance.getAge(), crdInstance.getAge(),
]} ]}