@churchillliving/se-ui-toolkit 6.53.438 → 6.53.440
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 -6
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/services/card.service.js +2 -3
- package/fesm2015/churchillliving-se-ui-toolkit.js +1 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -10465,11 +10465,10 @@
|
|
|
10465
10465
|
_this.deleteImageFromTables(imageInfo.tables, uniqueKey);
|
|
10466
10466
|
}
|
|
10467
10467
|
else {
|
|
10468
|
-
changeDynamicCardState({ imageInfo: imageInfo });
|
|
10469
10468
|
_this.alertService.success('Image deleted successfully.');
|
|
10470
10469
|
}
|
|
10471
|
-
}, function (
|
|
10472
|
-
var error =
|
|
10470
|
+
}, function (_e) {
|
|
10471
|
+
var error = _e.error;
|
|
10473
10472
|
_this.alertService.apiError(error);
|
|
10474
10473
|
});
|
|
10475
10474
|
};
|
|
@@ -10482,8 +10481,8 @@
|
|
|
10482
10481
|
})
|
|
10483
10482
|
.subscribe(function (response) {
|
|
10484
10483
|
_this.alertService.success('Image deleted successfully.');
|
|
10485
|
-
}, function (
|
|
10486
|
-
var error =
|
|
10484
|
+
}, function (_e) {
|
|
10485
|
+
var error = _e.error;
|
|
10487
10486
|
_this.alertService.apiError(error);
|
|
10488
10487
|
});
|
|
10489
10488
|
};
|
|
@@ -10530,7 +10529,7 @@
|
|
|
10530
10529
|
if (deleteMatchKey === void 0) { deleteMatchKey = ''; }
|
|
10531
10530
|
arr = setDataFields(arr);
|
|
10532
10531
|
cardInfo = objConvertToLower(cardInfo);
|
|
10533
|
-
var index = arr.findIndex(function (i) { return i[deleteMatchKey] === cardInfo[deleteMatchKey] || i.blobfileurl === cardInfo.blobfileurl; });
|
|
10532
|
+
var index = arr.findIndex(function (i) { var _a, _b, _c, _d; return ((_a = i[deleteMatchKey]) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = cardInfo[deleteMatchKey]) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || ((_c = i.blobfileurl) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === ((_d = cardInfo.blobfileurl) === null || _d === void 0 ? void 0 : _d.toLowerCase()); });
|
|
10534
10533
|
if (index > -1) {
|
|
10535
10534
|
arr.splice(index, 1);
|
|
10536
10535
|
}
|