@eqproject/eqp-dynamic-module 2.10.0 → 2.10.1

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.
@@ -9632,6 +9632,9 @@ class FilterFormStatisticComponent {
9632
9632
  // Il filtro viene caricato dall'esterno e potrebbero esserci dei campi non più attuali e quindi vanno separati
9633
9633
  this.filters = this.Statistic;
9634
9634
  this.Statistic.Statistics.forEach((statisticField) => {
9635
+ if (statisticField.fieldtype == null) {
9636
+ return;
9637
+ }
9635
9638
  var foundFieldIndex = this.form.Fields.find(x => x.Name == statisticField.key);
9636
9639
  if (foundFieldIndex == null) {
9637
9640
  // Il campo è presente nei filtri ma non nella definizione del form attuale. Il filtro è quindi outdated;
@@ -9709,8 +9712,15 @@ class FilterFormStatisticComponent {
9709
9712
  }
9710
9713
  });
9711
9714
  }
9712
- this.filters.Statistics = statistics;
9715
+ if (statistics.length > 0) {
9716
+ this.filters.Statistics = statistics;
9717
+ }
9718
+ else {
9719
+ this.filters.Statistics = new Array();
9720
+ }
9721
+ console.log("onFilterChange", ev, ev.logicoperator != null && ev.value != null, ev.visible, ev.isY, ev.isX);
9713
9722
  if ((ev.logicoperator != null && ev.value != null) || ev.visible || ev.isY || ev.isX) {
9723
+ console.log("PUSHED", ev);
9714
9724
  this.filters.Statistics.push(ev);
9715
9725
  }
9716
9726
  }