mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 10:15:37 +03:00
Prevent language select from breaking in Settings
This commit is contained in:
parent
dd772c10bf
commit
70aef6879a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue