fix: prevent clearing of language selection on account view (#6803)

Fixes https://github.com/payloadcms/payload/issues/6794

Users should not be able to clear their language selection on the
account view.
This commit is contained in:
Jarrod Flesch
2024-06-17 09:53:33 -04:00
committed by GitHub
parent e7159c033e
commit 1a03e9ace5

View File

@@ -17,6 +17,7 @@ export const LanguageSelector: React.FC<{
return (
<ReactSelect
inputId="language-select"
isClearable={false}
onChange={async (option: Option<AcceptedLanguages>) => {
await switchLanguage(option.value)
}}