This commit is contained in:
Sofia Papacharalampous 2024-05-16 15:35:04 +03:00
parent 346ef4476a
commit 2a126cd40f
1 changed files with 1 additions and 1 deletions

View File

@ -1581,7 +1581,7 @@ export class DescriptionTemplateSelectOptionEditorModel implements DescriptionTe
const baseContext: ValidationContext = new ValidationContext();
const baseValidationArray: Validation[] = new Array<Validation>();
baseValidationArray.push({ key: 'label', validators: [BackendErrorValidator(validationErrorModel, `${rootPath}label`)] });
baseValidationArray.push({ key: 'label', validators: [Validators.required, BackendErrorValidator(validationErrorModel, `${rootPath}label`)] });
baseValidationArray.push({ key: 'value', validators: [Validators.required, BackendErrorValidator(validationErrorModel, `${rootPath}value`)] });
baseContext.validation = baseValidationArray;