@sd-angular/core 1.0.21 → 1.0.22

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.
@@ -2594,19 +2594,20 @@
2594
2594
  _this.ref.detectChanges();
2595
2595
  };
2596
2596
  this.onRemove = function (item) {
2597
+ var _a, _b;
2597
2598
  var editor = _this.gridOption.editor;
2598
2599
  if (editor.type === 'inline') {
2599
2600
  if (_this.gridOption.type === 'local') {
2600
2601
  var idx2 = _this.localItems.indexOf(item);
2601
2602
  _this.localItems.splice(idx2, 1);
2602
2603
  _this.localItems = __spread(_this.localItems);
2603
- editor === null || editor === void 0 ? void 0 : editor.onRemove(item, _this.localItems);
2604
+ (_a = editor === null || editor === void 0 ? void 0 : editor.onRemove) === null || _a === void 0 ? void 0 : _a.call(editor, item, _this.localItems);
2604
2605
  }
2605
2606
  else {
2606
2607
  var idx1 = _this.items.indexOf(item);
2607
2608
  _this.items.splice(idx1, 1);
2608
2609
  _this.items = __spread(_this.items);
2609
- editor === null || editor === void 0 ? void 0 : editor.onRemove(item, _this.items);
2610
+ (_b = editor === null || editor === void 0 ? void 0 : editor.onRemove) === null || _b === void 0 ? void 0 : _b.call(editor, item, _this.items);
2610
2611
  }
2611
2612
  _this.ref.detectChanges();
2612
2613
  return;