@eqproject/eqp-dynamic-module 2.8.1 → 2.8.2

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.
@@ -5557,7 +5557,7 @@ class AddFormRecordComponent {
5557
5557
  // Il trigger va sparato. Valuto le funzioni interne
5558
5558
  var formulas = JSON.parse(JSON.stringify(trigger.formulas));
5559
5559
  GlobalService.debugLog("checkTriggers - evaluate formulas ", formulas);
5560
- if (formulas != null && formulas.length > 0) {
5560
+ if (formulas != null && Object.keys(formulas).length > 0) {
5561
5561
  Object.keys(formulas).forEach((key) => {
5562
5562
  var formula = formulas[key].value;
5563
5563
  GlobalService.debugLog("checkTriggers - formulas[key] ", formulas[key]);