@flowgram.ai/renderer 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -2415,6 +2415,9 @@ var FlowDragLayer = class extends Layer7 {
2415
2415
  const scale = this.playgroundConfigEntity.finalScale;
2416
2416
  if (this.containerRef.current) {
2417
2417
  const dragNode = this.containerRef.current.children?.[0];
2418
+ if (!dragNode) {
2419
+ return;
2420
+ }
2418
2421
  const clientBounds = this.playgroundConfigEntity.getClientBounds();
2419
2422
  const dragBlockX = event.clientX - (this.pipelineNode.offsetLeft || 0) - clientBounds.x - (dragNode.clientWidth - this.dragOffset.x) * scale;
2420
2423
  const dragBlockY = event.clientY - (this.pipelineNode.offsetTop || 0) - clientBounds.y - (dragNode.clientHeight - this.dragOffset.y) * scale;