fix: use supported languages only for install form (#2844)

This commit is contained in:
crazywoola 2024-03-15 12:05:35 +08:00 committed by GitHub
parent f29280ba5c
commit 156345cb4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,8 +171,8 @@ const ActivateForm = () => {
</label>
<div className="relative mt-1 rounded-md shadow-sm">
<SimpleSelect
defaultValue={defaultLanguage()}
items={languages}
defaultValue={LanguagesSupported[0]}
items={languages.filter(item => item.supported)}
onSelect={(item) => {
setLanguage(item.value as string)
}}