Skip to content

Commit b13e472

Browse files
author
昔梦
committed
fix:删除无用代码
1 parent ba56453 commit b13e472

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/x-flow/src/XFlow.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ const XFlow: FC<FlowProps> = memo(props => {
147147
}
148148
}
149149
const selectedNode = latestNodes?.find(node => node.selected);
150-
const targetElement =
151-
e.target instanceof HTMLElement ? e.target : undefined;
152-
const targetTagName = targetElement?.tagName;
153-
const targetClassList = targetElement?.classList;
154150

155151
if (isNodeCopyEvent && selectedNode?.id) {
156152
const nodeType = selectedNode?.data?._nodeType;

0 commit comments

Comments
 (0)