Fix short description validator

This commit is contained in:
Chocobozzz
2022-08-18 15:03:46 +02:00
parent 6c38f40d96
commit c5fe343411

View File

@@ -9,9 +9,9 @@ export const INSTANCE_NAME_VALIDATOR: BuildFormValidator = {
}
export const INSTANCE_SHORT_DESCRIPTION_VALIDATOR: BuildFormValidator = {
VALIDATORS: [ Validators.max(250) ],
VALIDATORS: [ Validators.maxLength(250) ],
MESSAGES: {
max: $localize`Short description should not be longer than 250 characters.`
maxlength: $localize`Short description should not be longer than 250 characters.`
}
}