Skip to content

Commit dc53247

Browse files
author
Akos Kitta
committed
ATL-936: Fixed the theme dropdown in the settings.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent ce76bba commit dc53247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)