nuxeo-development-framework 1.4.2 → 1.4.4

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.
@@ -9809,6 +9809,15 @@
9809
9809
  }
9810
9810
  };
9811
9811
  };
9812
+ DynamicFormComponent.prototype.filterNullValues = function (formValue) {
9813
+ var filtered = {};
9814
+ for (var key in formValue) {
9815
+ if (formValue[key]) {
9816
+ filtered[key] = formValue[key];
9817
+ }
9818
+ }
9819
+ return filtered;
9820
+ };
9812
9821
  DynamicFormComponent.prototype.ngOnDestroy = function () {
9813
9822
  this.langSubscription ? this.langSubscription.unsubscribe() : '';
9814
9823
  };
@@ -9831,7 +9840,8 @@
9831
9840
  data: this.formBuilderServic.adaptOutDynamicFields(event.data),
9832
9841
  originalEvent: event
9833
9842
  };
9834
- this.change.emit(myformValue);
9843
+ var body = this.filterNullValues(myformValue);
9844
+ this.change.emit(body);
9835
9845
  }
9836
9846
  };
9837
9847
  return DynamicFormComponent;