mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-24 06:46:20 +08:00
Fix validation issues of the language profile editor
This commit is contained in:
parent
a338de147e
commit
4826cb8487
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ const ProfileEditForm: FunctionComponent<Props> = ({
|
|||
const form = useForm({
|
||||
initialValues: profile,
|
||||
validate: {
|
||||
name: (value) => value.length > 0,
|
||||
name: (value) => (value.length > 0 ? null : "Must have a name"),
|
||||
items: (value) =>
|
||||
value.length > 0 ? null : "Must contain at lease 1 language",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue