follow up to: #5164 (#5223)

This commit is contained in:
Arpit 2023-01-06 17:38:58 +05:30 committed by GitHub
parent cf3a045a2f
commit b182fb7735
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -335,9 +335,7 @@ export const JSONNode = ({ data, ...restProps }) => {
<div
style={{ width: 'inherit' }}
className={`${shouldDisplayIntendedBlock && 'group-border'} ${applySelectedNodeStyles && 'selected-node'} ${
shouldDisplayIntendedBlock && !applySelectedNodeStyles && 'border-0'
}`}
className={`${shouldDisplayIntendedBlock && 'group-border'} ${applySelectedNodeStyles && 'selected-node'} `}
>
<div
className={cx('d-flex', {

View file

@ -21,6 +21,8 @@ const JSONTreeNodeIndicator = ({ toExpand, toShowNodeIndicator, handleToggle, ..
};
const handleToggleForNode = () => {
if (!toExpandNode) return;
if (toExpandWithLabels) {
return toggleWithLabels(data, currentNode, path);
}