@eqproject/eqp-dynamic-module 2.9.33 → 2.9.35
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.
- package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +4 -4
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +3 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +3 -3
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9615,7 +9615,7 @@ class FilterFormStatisticComponent {
|
|
|
9615
9615
|
else {
|
|
9616
9616
|
this.editResponseRecord();
|
|
9617
9617
|
}
|
|
9618
|
-
if (this.Statistic != null) {
|
|
9618
|
+
if (this.Statistic != null && this.Statistic.Statistics != null && this.Statistic.Statistics.length > 0) {
|
|
9619
9619
|
this.filters = this.Statistic;
|
|
9620
9620
|
}
|
|
9621
9621
|
// l'inizializzazione termina con il recupero del record o con l'inizializzazione del form vuoto
|
|
@@ -9837,8 +9837,8 @@ class FilterFormStatisticComponent {
|
|
|
9837
9837
|
}
|
|
9838
9838
|
this.loader = true;
|
|
9839
9839
|
}
|
|
9840
|
-
getStatisticFromFieldName(Statistics, fieldName) {
|
|
9841
|
-
return Statistics.find(x => x.key == fieldName);
|
|
9840
|
+
getStatisticFromFieldName(Statistics = null, fieldName) {
|
|
9841
|
+
return Statistics == null || Statistics.length == 0 ? null : Statistics.find(x => x.key == fieldName);
|
|
9842
9842
|
}
|
|
9843
9843
|
/**
|
|
9844
9844
|
* Metodo per creare nell'oggetto Record le proprietà mancanti rispetto ai campi che compongono la form.
|