mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
parent
cf3a045a2f
commit
b182fb7735
2 changed files with 3 additions and 3 deletions
|
|
@ -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', {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ const JSONTreeNodeIndicator = ({ toExpand, toShowNodeIndicator, handleToggle, ..
|
|||
};
|
||||
|
||||
const handleToggleForNode = () => {
|
||||
if (!toExpandNode) return;
|
||||
|
||||
if (toExpandWithLabels) {
|
||||
return toggleWithLabels(data, currentNode, path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue