fix: node connect self (#3194)

This commit is contained in:
zxhlyh 2024-04-09 12:24:41 +08:00 • committed by GitHub
commit 86707928d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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