onshore-forms 0.0.52 → 0.0.54

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.
@@ -187,6 +187,7 @@ class OnshoreFormsService {
187
187
  formGroup.setParent(formArray);
188
188
  formArray.push(formGroup);
189
189
  this.subscribeNestedFormGroup(formGroup);
190
+ return formGroup;
190
191
  }
191
192
  removeFormArrayItem(form, index) {
192
193
  form.removeAt(index);
@@ -416,8 +417,8 @@ class OnshoreFormItemContainer {
416
417
  this.onWindowResize();
417
418
  }
418
419
  ngOnChanges(changes) {
419
- const previousValue = changes['formTemplate'].previousValue;
420
- const currentValue = changes['formTemplate'].currentValue;
420
+ const previousValue = changes['formTemplate']?.previousValue;
421
+ const currentValue = changes['formTemplate']?.currentValue;
421
422
  if (currentValue) {
422
423
  if (previousValue?.enabled !== currentValue?.enabled) {
423
424
  this.enabled(currentValue?.enabled);