@logicflow/core 2.1.8 → 2.1.9

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.
@@ -495,7 +495,7 @@ var GraphModel = /** @class */ (function () {
495
495
  edgeDragging = true;
496
496
  break;
497
497
  }
498
- else {
498
+ if (!edgeMode.virtual) {
499
499
  edges.push(edgeMode.getHistoryData());
500
500
  }
501
501
  }
@@ -501,7 +501,7 @@ var GraphModel = /** @class */ (function () {
501
501
  edgeDragging = true;
502
502
  break;
503
503
  }
504
- else {
504
+ if (!edgeMode.virtual) {
505
505
  edges.push(edgeMode.getHistoryData());
506
506
  }
507
507
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/core",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "LogicFlow, help you quickly create flowcharts",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -561,7 +561,8 @@ export class GraphModel {
561
561
  if (edgeMode.isDragging) {
562
562
  edgeDragging = true
563
563
  break
564
- } else {
564
+ }
565
+ if (!edgeMode.virtual) {
565
566
  edges.push(edgeMode.getHistoryData())
566
567
  }
567
568
  }