chore: tree is expanded by default (#3563)

This commit is contained in:
Palash Gupta 2023-09-15 10:38:07 +05:30 committed by GitHub
parent 56f1f71461
commit e3f17b5420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,9 @@ function TableView({
if (record.field === 'body') {
const parsedBody = recursiveParseJSON(field);
if (!isEmpty(parsedBody)) {
return <Tree showLine treeData={jsonToDataNodes(parsedBody)} />;
return (
<Tree defaultExpandAll showLine treeData={jsonToDataNodes(parsedBody)} />
);
}
}