We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7317714 commit 6beeaf0Copy full SHA for 6beeaf0
libs/visual-programming-system/src/components/rect.ts
@@ -749,9 +749,13 @@ export class Rect<T extends BaseNodeInfo> {
749
}
750
751
752
- (this.canvas?.domElement as unknown as HTMLElement | SVGElement).append(
753
- draggedConnection.startNode?.domElement as unknown as HTMLElement
754
- );
+ if (draggedConnection.startNode?.domElement) {
+ (
+ this.canvas?.domElement as unknown as HTMLElement | SVGElement
755
+ ).append(
756
+ draggedConnection.startNode?.domElement as unknown as HTMLElement
757
+ );
758
+ }
759
760
if (this.canvasUpdated) {
761
this.canvasUpdated(
0 commit comments