Skip to content

Commit 19613de

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
ATL-936: Fixed the theme dropdown in the settings.
Signed-off-by: Akos Kitta <[email protected]>
1 parent 01ef138 commit 19613de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arduino-ide-extension/src/browser/settings.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export class SettingsComponent extends React.Component<SettingsComponent.Props,
300300
<div className='flex-line'>
301301
<select
302302
className='theia-select'
303-
value={ThemeService.get().getCurrentTheme().label}
303+
value={ThemeService.get().getThemes().find(({ id }) => id === this.state.themeId)?.label || 'Unknown'}
304304
onChange={this.themeDidChange}>
305305
{ThemeService.get().getThemes().map(({ id, label }) => <option key={id} value={label}>{label}</option>)}
306306
</select>

0 commit comments

Comments
 (0)