fix: node connect self (#3194)

This commit is contained in:
zxhlyh
2024-04-09 12:24:41 +08:00
committed by GitHub
parent 3c3fb3cd3f
commit 86707928d4
3 changed files with 85 additions and 5 deletions

View File

@@ -301,6 +301,8 @@ export const useNodesInteractions = () => {
target,
targetHandle,
}) => {
if (source === target)
return
if (getNodesReadOnly())
return