[TLC-254] tidy up imports, regexes, mock data

This commit is contained in:
Kim Shepherd
2022-04-23 16:54:52 +12:00
parent e182378572
commit be6ea812bb
4 changed files with 4 additions and 24 deletions

View File

@@ -73,7 +73,7 @@ export class FormBuilderService extends DynamicFormService {
this.formModels = new Map();
this.formGroups = new Map();
// Replace . with _ in configured type field here, to make configuration more simple and user-friendly
this.typeField = environment.submission.typeBind.field.replace('\.', '_');
this.typeField = environment.submission.typeBind.field.replace(/\./g, '_');
}
createDynamicFormControlEvent(control: FormControl, group: FormGroup, model: DynamicFormControlModel, type: string): DynamicFormControlEvent {