|
@@ -10,7 +10,6 @@ export abstract class GroupInputComponent implements OnInit {
|
|
|
|
|
|
@Input()
|
|
|
set meta(meta: StringMap<any>) {
|
|
|
- console.log('set meta');
|
|
|
this._meta = meta;
|
|
|
this.exposeForTemplate();
|
|
|
this.updateFormGroupAndMeta();
|
|
@@ -39,7 +38,7 @@ export abstract class GroupInputComponent implements OnInit {
|
|
|
this.formGoA.push(buildFormControl(meta[formArrayLength + delta]));
|
|
|
}
|
|
|
if (delta < 0) {
|
|
|
- this.formGoA.controls.length = meta.length;
|
|
|
+ this.formGoA.controls.length = meta.length; // Truncate the form array
|
|
|
}
|
|
|
}
|
|
|
this.childMetaArray = Object.values(this._meta.meta); // Metadata array of all controls in group
|