ngx-wapp-components 3.0.24-alpha.2 → 3.0.24

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.
@@ -6646,7 +6646,6 @@ class WImageFileUploaderComponent {
6646
6646
  onCustomUploadMultiMode(event) {
6647
6647
  if (this.allowMultipleImages == true) {
6648
6648
  event.currentFiles.forEach((file, index) => {
6649
- console.log(event);
6650
6649
  let foundIt = this.cropperImages.find(f => f.name == file.name);
6651
6650
  let foundItAlreadyUploaded = this.imagesAlreadyUploaded.find(f => f.name == file.name);
6652
6651
  if (event.currentFiles.length == 0) {
@@ -6701,7 +6700,7 @@ class WImageFileUploaderComponent {
6701
6700
  this.getIndexToDelete(image);
6702
6701
  this.imagesAlreadyUploaded = this.imagesAlreadyUploaded.filter(img => (img.base64 !== image.base64) || (img[this.identificatorName] !== image[this.identificatorName]));
6703
6702
  this.imagesAlreadyUploaded = [...this.activePositionProperty ? this.addPositionProperty(this.imagesAlreadyUploaded) : this.imagesAlreadyUploaded];
6704
- this.cropperImages = this.cropperImages.filter(img => (img.fileBase64 !== image.base64) || (img[this.identificatorName] !== image[this.identificatorName]));
6703
+ this.cropperImages = this.cropperImages.filter(img => (img.base64 !== image.base64) || (img.fileBase64 !== image.fileBase64) || (img[this.identificatorName] !== image[this.identificatorName]));
6705
6704
  if (image[this.identificatorName]) {
6706
6705
  this.onDeleteImage.emit({ deletedImage: image, images: this.imagesAlreadyUploaded });
6707
6706
  }