fix(outline-pane): hover invalid

This commit is contained in:
liujuping 2023-12-26 14:52:24 +08:00 committed by 林熠
parent f483970aef
commit f7ba053476

View File

@ -40,7 +40,7 @@ export default class TreeView extends PureComponent<{
return;
}
const node = this.getTreeNodeFromEvent(e)?.node;
detecting?.capture(node as any);
node?.id && detecting?.capture(node.id);
}
private onClick = (e: ReactMouseEvent) => {