Richard Knight 4 роки тому
батько
коміт
6f5dd70714

+ 1 - 2
src/app/dynaform/components/_abstract/group-input.component.ts

@@ -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