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

Signed-off-by: liuhongyu <lhy990409@gmail.com>
This commit is contained in:
nyako 2020-12-17 21:24:57 +08:00 committed by GitHub
parent be3aa88fd4
commit 733fc8a658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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