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> <div>
<label> <label>
<Trans>Translate to </Trans> <Trans>Translate to </Trans>{' '}
<select <select
value={targetLanguage || ''} value={targetLanguage || ''}
disabled={!snapStates.settings.contentTranslation} disabled={!snapStates.settings.contentTranslation}
style={{ width: '10em' }}
onChange={(e) => { onChange={(e) => {
states.settings.contentTranslationTargetLanguage = states.settings.contentTranslationTargetLanguage =
e.target.value || null; e.target.value || null;