fix(editor): Allow connecting node to itself on new canvas (no-changelog) (#11143)

This commit is contained in:
Alex Grozav
2024-10-08 11:15:36 +03:00
committed by GitHub
parent 8566b3a999
commit 2161ff1217
4 changed files with 98 additions and 73 deletions

View File

@@ -1299,10 +1299,6 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
): boolean {
const blocklist = [STICKY_NODE_TYPE];
if (sourceNode.id === targetNode.id) {
return false;
}
if (sourceConnectionType !== targetConnectionType) {
return false;
}