@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.
@@ -14946,7 +14946,7 @@ class AddFormFieldComponent {
14946
14946
  });
14947
14947
  }
14948
14948
  catchButtonImageChange(attachments) {
14949
- this.field.DynAttachment = attachments[1];
14949
+ this.field.DynAttachment = attachments[attachments.length - 1];
14950
14950
  if (this.field.DynAttachment != null && typeof this.field.DynAttachment.ImageHeightPx == "undefined") {
14951
14951
  var myBase64 = "data:image/" + this.field.DynAttachment.FileExtension.toLowerCase() + ";base64," + this.field.DynAttachment.FileDataBase64;
14952
14952
  var img = new Image();
@@ -14960,7 +14960,7 @@ class AddFormFieldComponent {
14960
14960
  }
14961
14961
  }
14962
14962
  catchButtonImageWithMarkersChange(attachments) {
14963
- this.field.DynAttachment = attachments[1];
14963
+ this.field.DynAttachment = attachments[attachments.length - 1];
14964
14964
  if (this.field.DynAttachment != null && typeof this.field.DynAttachment.ImageHeightPx == "undefined") {
14965
14965
  var myBase64 = "data:image/" + this.field.DynAttachment.FileExtension.toLowerCase() + ";base64," + this.field.DynAttachment.FileDataBase64;
14966
14966
  var img = new Image();