mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
chore: selected language isn't included in language options
This commit is contained in:
@@ -107,7 +107,10 @@ const General: React.FC = () => {
|
||||
{t('settings.general.selectLanguage')}
|
||||
</p>
|
||||
<Dropdown
|
||||
options={languageOptions}
|
||||
options={languageOptions.filter(
|
||||
(languageOption) =>
|
||||
languageOption.value !== selectedLanguage?.value,
|
||||
)}
|
||||
selectedValue={selectedLanguage ?? languageOptions[0]}
|
||||
onSelect={(selectedOption: { label: string; value: string }) => {
|
||||
setSelectedLanguage(selectedOption);
|
||||
|
||||
Reference in New Issue
Block a user