@churchillliving/se-ui-toolkit 6.53.440 → 6.53.441
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/bundles/churchillliving-se-ui-toolkit.umd.js +5 -5
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/services/card.service.js +2 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js +1 -1
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -10467,8 +10467,8 @@
|
|
|
10467
10467
|
else {
|
|
10468
10468
|
_this.alertService.success('Image deleted successfully.');
|
|
10469
10469
|
}
|
|
10470
|
-
}, function (
|
|
10471
|
-
var error =
|
|
10470
|
+
}, function (_c) {
|
|
10471
|
+
var error = _c.error;
|
|
10472
10472
|
_this.alertService.apiError(error);
|
|
10473
10473
|
});
|
|
10474
10474
|
};
|
|
@@ -10481,8 +10481,8 @@
|
|
|
10481
10481
|
})
|
|
10482
10482
|
.subscribe(function (response) {
|
|
10483
10483
|
_this.alertService.success('Image deleted successfully.');
|
|
10484
|
-
}, function (
|
|
10485
|
-
var error =
|
|
10484
|
+
}, function (_c) {
|
|
10485
|
+
var error = _c.error;
|
|
10486
10486
|
_this.alertService.apiError(error);
|
|
10487
10487
|
});
|
|
10488
10488
|
};
|
|
@@ -10529,7 +10529,7 @@
|
|
|
10529
10529
|
if (deleteMatchKey === void 0) { deleteMatchKey = ''; }
|
|
10530
10530
|
arr = setDataFields(arr);
|
|
10531
10531
|
cardInfo = objConvertToLower(cardInfo);
|
|
10532
|
-
var index = arr.findIndex(function (i) {
|
|
10532
|
+
var index = arr.findIndex(function (i) { return (i[deleteMatchKey] && i[deleteMatchKey] === cardInfo[deleteMatchKey]) || (i.blobfileurl === cardInfo.blobfileurl); });
|
|
10533
10533
|
if (index > -1) {
|
|
10534
10534
|
arr.splice(index, 1);
|
|
10535
10535
|
}
|