diff options
author | JayZed <[email protected]> | 2024-03-13 23:14:00 -0400 |
---|---|---|
committer | JayZed <[email protected]> | 2024-03-13 23:14:00 -0400 |
commit | d875dc7733c901246881325ee3a84fe5d44b10b9 (patch) | |
tree | 503593f05ce7034c011a6cd401d2acd7648837e3 /frontend/src/components/forms/ProfileEditForm.tsx | |
parent | 6c6cf0716f2e413262a46d14adca4ec1d4174bc5 (diff) | |
parent | 1c25d125d3db6b5ce2b38076d179dbfddf7cc2df (diff) | |
download | bazarr-d875dc7733c901246881325ee3a84fe5d44b10b9.tar.gz bazarr-d875dc7733c901246881325ee3a84fe5d44b10b9.zip |
Merge branch 'development' of https://github.com/morpheus65535/bazarr into development
Diffstat (limited to 'frontend/src/components/forms/ProfileEditForm.tsx')
-rw-r--r-- | frontend/src/components/forms/ProfileEditForm.tsx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/frontend/src/components/forms/ProfileEditForm.tsx b/frontend/src/components/forms/ProfileEditForm.tsx index d31a0e338..874f5b8a6 100644 --- a/frontend/src/components/forms/ProfileEditForm.tsx +++ b/frontend/src/components/forms/ProfileEditForm.tsx @@ -69,11 +69,11 @@ const ProfileEditForm: FunctionComponent<Props> = ({ validate: { name: FormUtils.validation( (value) => value.length > 0, - "Must have a name" + "Must have a name", ), items: FormUtils.validation( (value) => value.length > 0, - "Must contain at lease 1 language" + "Must contain at lease 1 language", ), }, }); @@ -83,7 +83,7 @@ const ProfileEditForm: FunctionComponent<Props> = ({ const itemCutoffOptions = useSelectorOptions( form.values.items, (v) => v.language, - (v) => String(v.id) + (v) => String(v.id), ); const cutoffOptions = useMemo( @@ -91,24 +91,24 @@ const ProfileEditForm: FunctionComponent<Props> = ({ ...itemCutoffOptions, options: [...itemCutoffOptions.options, ...defaultCutoffOptions], }), - [itemCutoffOptions] + [itemCutoffOptions], ); const selectedCutoff = useMemo( () => cutoffOptions.options.find((v) => v.value.id === form.values.cutoff) ?.value ?? null, - [cutoffOptions, form.values.cutoff] + [cutoffOptions, form.values.cutoff], ); const mustContainOptions = useSelectorOptions( form.values.mustContain, - (v) => v + (v) => v, ); const mustNotContainOptions = useSelectorOptions( form.values.mustNotContain, - (v) => v + (v) => v, ); const action = useArrayAction<Language.ProfileItem>((fn) => { @@ -120,7 +120,7 @@ const ProfileEditForm: FunctionComponent<Props> = ({ 1 + form.values.items.reduce<number>( (val, item) => Math.max(item.id, val), - 0 + 0, ); if (languages.length > 0) { @@ -154,7 +154,7 @@ const ProfileEditForm: FunctionComponent<Props> = ({ () => languageOptions.options.find((l) => l.value.code2 === code) ?.value ?? null, - [code] + [code], ); const { classes } = useTableStyles(); @@ -238,7 +238,7 @@ const ProfileEditForm: FunctionComponent<Props> = ({ }, }, ], - [action, languageOptions] + [action, languageOptions], ); return ( @@ -332,5 +332,5 @@ export const ProfileEditModal = withModal( { title: "Edit Languages Profile", size: "xl", - } + }, ); |