diff --git a/desktop/plugins/public/ui-debugger/components/Tree2.tsx b/desktop/plugins/public/ui-debugger/components/Tree2.tsx index fcb9c8bc4..8d80f49ad 100644 --- a/desktop/plugins/public/ui-debugger/components/Tree2.tsx +++ b/desktop/plugins/public/ui-debugger/components/Tree2.tsx @@ -133,8 +133,9 @@ function TreeItemContainer({ onSelectNode(treeNode.id); }} item={treeNode}> - { instance.uiState.expandedNodes.update((draft) => { if (draft.has(treeNode.id)) { @@ -145,7 +146,6 @@ function TreeItemContainer({ }); }} /> - {nodeIcon(treeNode)} @@ -189,8 +189,12 @@ const TreeItem = styled.li<{ backgroundColor: isSelected ? theme.selectionBackgroundColor : theme.white, })); -function Arrow(props: {onClick: () => void; expanded: boolean}) { - return ( +function ExpandedIconOrSpace(props: { + onClick: () => void; + expanded: boolean; + children: Id[]; +}) { + return props.children.length > 0 ? (
void; expanded: boolean}) { color="grey" />
+ ) : ( +
); }