@eqproject/eqp-dynamic-module 2.4.25 → 2.4.26

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.
@@ -5692,9 +5692,10 @@ class ListViewFormRecordComponent {
5692
5692
  }
5693
5693
  printAdditionalInfo(record) {
5694
5694
  let out = "";
5695
- this.configurations.listViewRecordTitle.forEach((item) => {
5696
- out += record.AdditionalInfo[item] ? " " + record.AdditionalInfo[item] : " " + item;
5697
- });
5695
+ if (this.configurations.listViewRecordTitle != null && this.configurations.listViewRecordTitle.length > 0)
5696
+ this.configurations.listViewRecordTitle.forEach((item) => {
5697
+ out += record.AdditionalInfo[item] ? " " + record.AdditionalInfo[item] : " " + item;
5698
+ });
5698
5699
  // throw new Error('Method not implemented.');
5699
5700
  return out;
5700
5701
  }
@@ -10077,9 +10078,11 @@ class EqpDynamicModuleConfiguratorComponent {
10077
10078
  setFormAndConfigure(form = null) {
10078
10079
  if (form != null) {
10079
10080
  this.form = form;
10080
- this.form.Fields.forEach((field) => {
10081
- field.DataGetterType = field.DataGetterType == null ? DataGetterTypeEnum.Manuale : field.DataGetterType;
10082
- });
10081
+ if (typeof this.form.Fields != "undefined") {
10082
+ this.form.Fields.forEach((field) => {
10083
+ field.DataGetterType = field.DataGetterType == null ? DataGetterTypeEnum.Manuale : field.DataGetterType;
10084
+ });
10085
+ }
10083
10086
  }
10084
10087
  this.configureColumns();
10085
10088
  this.createFormForm();