@eqproject/eqp-dynamic-module 2.10.98 → 2.10.99

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.
@@ -15062,7 +15062,7 @@ class AddFormFieldComponent {
15062
15062
  });
15063
15063
  }
15064
15064
  catchButtonImageChange(attachments) {
15065
- this.field.DynAttachment = attachments[1];
15065
+ this.field.DynAttachment = attachments[attachments.length - 1];
15066
15066
  if (this.field.DynAttachment != null && typeof this.field.DynAttachment.ImageHeightPx == "undefined") {
15067
15067
  var myBase64 = "data:image/" + this.field.DynAttachment.FileExtension.toLowerCase() + ";base64," + this.field.DynAttachment.FileDataBase64;
15068
15068
  var img = new Image();
@@ -15076,7 +15076,7 @@ class AddFormFieldComponent {
15076
15076
  }
15077
15077
  }
15078
15078
  catchButtonImageWithMarkersChange(attachments) {
15079
- this.field.DynAttachment = attachments[1];
15079
+ this.field.DynAttachment = attachments[attachments.length - 1];
15080
15080
  if (this.field.DynAttachment != null && typeof this.field.DynAttachment.ImageHeightPx == "undefined") {
15081
15081
  var myBase64 = "data:image/" + this.field.DynAttachment.FileExtension.toLowerCase() + ";base64," + this.field.DynAttachment.FileDataBase64;
15082
15082
  var img = new Image();