Prevent language select from breaking in Settings

This commit is contained in:
Lim Chee Aun 2024-08-17 12:52:18 +08:00
parent dd772c10bf
commit 70aef6879a

View file

@ -365,10 +365,11 @@ function Settings({ onClose }) {
>
<div>
<label>
<Trans>Translate to </Trans>
<Trans>Translate to </Trans>{' '}
<select
value={targetLanguage || ''}
disabled={!snapStates.settings.contentTranslation}
style={{ width: '10em' }}
onChange={(e) => {
states.settings.contentTranslationTargetLanguage =
e.target.value || null;