diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/question-control.service.ts b/public/docs/_examples/cb-dynamic-form/ts/app/question-control.service.ts index e95dbff462..d4cf25951c 100644 --- a/public/docs/_examples/cb-dynamic-form/ts/app/question-control.service.ts +++ b/public/docs/_examples/cb-dynamic-form/ts/app/question-control.service.ts @@ -11,7 +11,7 @@ export class QuestionControlService { let group = {}; questions.forEach(question => { - group[question.key] = question.required ? [question.value || '', Validators.required] : []; + group[question.key] = question.required ? [question.value || '', Validators.required] : [question.value || '']; }); return this.fb.group(group); }