Browse Source

Adding comment

Richard Knight 4 years ago
parent
commit
6f5dd70714
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/app/dynaform/components/_abstract/group-input.component.ts

+ 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