diff --git a/desktop/plugins/public/ui-debugger/components/Tree2.tsx b/desktop/plugins/public/ui-debugger/components/Tree2.tsx index 80e72a392..50ca804b3 100644 --- a/desktop/plugins/public/ui-debugger/components/Tree2.tsx +++ b/desktop/plugins/public/ui-debugger/components/Tree2.tsx @@ -88,7 +88,7 @@ export function Tree2({ instance.uiState.hoveredNodes.set([]); }}> {treeNodes.map((treeNode, index) => ( - { + const id = prevProps.treeNode.id; + return ( + prevProps.treeNode === nextProps.treeNode && + id !== prevProps.selectedNode && + id !== nextProps.selectedNode + ); + }, +); + function TreeItemContainer({ innerRef, isUsingKBToScroll,