@churchillliving/se-ui-toolkit 6.53.436 → 6.53.437

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.
@@ -7209,7 +7209,9 @@
7209
7209
  if (cardControl) {
7210
7210
  var index = cardControl.card.data.findIndex(function (card) { return card.id == deletedItem.id; });
7211
7211
  console.log('index: ', index);
7212
- cardControl.card.data.splice(index, 1);
7212
+ if (index > -1) {
7213
+ cardControl.card.data.splice(index, 1);
7214
+ }
7213
7215
  }
7214
7216
  ;
7215
7217
  });
@@ -9197,11 +9199,8 @@
9197
9199
  if (_this.data && event) {
9198
9200
  var arr = __spreadArray([], __read(_this.data));
9199
9201
  var index = arr.findIndex(function (i) { return i.blobfileurl === event.blobfileurl; });
9200
- var obj = {};
9201
- if (index > -1) {
9202
- obj = arr[index];
9203
- arr.splice(index, 1);
9204
- }
9202
+ var obj = arr[index];
9203
+ arr.splice(index, 1);
9205
9204
  _this.data = __spreadArray([], __read(arr));
9206
9205
  if (_this.card && _this.card.onDelete) {
9207
9206
  obj = _this.replacePropName(obj);