From b182fb7735fc59d5ae61820c665c590dfafed5fe Mon Sep 17 00:00:00 2001 From: Arpit Date: Fri, 6 Jan 2023 17:38:58 +0530 Subject: [PATCH] follow up to: #5164 (#5223) --- frontend/src/_ui/JSONTreeViewer/JSONNode.jsx | 4 +--- frontend/src/_ui/JSONTreeViewer/JSONNodeIndicator.jsx | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) 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); }