diff --git a/frontend/src/_ui/JSONTreeViewer/JSONNode.jsx b/frontend/src/_ui/JSONTreeViewer/JSONNode.jsx index 0432cc5853..f3575d914a 100644 --- a/frontend/src/_ui/JSONTreeViewer/JSONNode.jsx +++ b/frontend/src/_ui/JSONTreeViewer/JSONNode.jsx @@ -335,9 +335,7 @@ export const JSONNode = ({ data, ...restProps }) => {
{ + if (!toExpandNode) return; + if (toExpandWithLabels) { return toggleWithLabels(data, currentNode, path); }