Skip to content

Commit

Permalink
fix(outline-pane): hover invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Dec 26, 2023
1 parent 73dacad commit 59e53fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-outline-pane/src/views/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 59e53fe

Please sign in to comment.