@churchillliving/se-ui-toolkit 6.52.79 → 6.52.81
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 +2 -1
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/services/card.service.js +3 -3
- package/fesm2015/churchillliving-se-ui-toolkit.js +2 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/services/card.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8996,6 +8996,7 @@
|
|
|
8996
8996
|
}
|
|
8997
8997
|
CardService.prototype.deleteImage = function (imageInfo, uniqueKey, dynamicForm, cardId, deleteMatchKey) {
|
|
8998
8998
|
var _this = this;
|
|
8999
|
+
if (deleteMatchKey === void 0) { deleteMatchKey = ''; }
|
|
8999
9000
|
var imageToDelete = imageInfo.id && imageInfo.id > 0
|
|
9000
9001
|
? { RecordId: imageInfo.id }
|
|
9001
9002
|
: { UniqueKey: uniqueKey, RecordId: imageInfo.recordId };
|
|
@@ -9066,7 +9067,7 @@
|
|
|
9066
9067
|
if (arr === void 0) { arr = []; }
|
|
9067
9068
|
arr = setDataFields(arr);
|
|
9068
9069
|
cardInfo = objConvertToLower(cardInfo);
|
|
9069
|
-
var index = arr.findIndex(function (i) { return i[deleteMatchKey] === cardInfo[deleteMatchKey]; });
|
|
9070
|
+
var index = arr.findIndex(function (i) { return i[deleteMatchKey] === cardInfo[deleteMatchKey] || i.blobfileurl === cardInfo.blobfileurl; });
|
|
9070
9071
|
if (index > -1) {
|
|
9071
9072
|
arr.splice(index, 1);
|
|
9072
9073
|
}
|