react-design-editor 0.0.45 → 0.0.46

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.
@@ -195599,8 +195599,6 @@ var Svg = fabric["fabric"].util.createClass(fabric["fabric"].Group, {
195599
195599
  }
195600
195600
  });
195601
195601
  } else {
195602
- var _this$_objects;
195603
-
195604
195602
  createdObj.set({
195605
195603
  originX: 'center',
195606
195604
  originY: 'center'
@@ -195616,13 +195614,10 @@ var Svg = fabric["fabric"].util.createClass(fabric["fabric"].Group, {
195616
195614
  createdObj.set({
195617
195615
  stroke: options.stroke
195618
195616
  });
195619
- }
195617
+ } // if (this._objects?.length) {
195618
+ // (this as FabricGroup)._objects.forEach(obj => this.remove(obj));
195619
+ // }
195620
195620
 
195621
- if ((_this$_objects = this._objects) !== null && _this$_objects !== void 0 && _this$_objects.length) {
195622
- this._objects.forEach(function (obj) {
195623
- return _this.remove(obj);
195624
- });
195625
- }
195626
195621
 
195627
195622
  this.add(createdObj);
195628
195623
  }