fix: show selected map template in settings dropdown

This commit is contained in:
Maurice
2026-03-31 22:18:42 +02:00
parent 36cd2feca5
commit cd13399da5

View File

@@ -425,7 +425,7 @@ export default function SettingsPage(): React.ReactElement {
<div> <div>
<label className="block text-sm font-medium text-slate-700 mb-1.5">{t('settings.mapTemplate')}</label> <label className="block text-sm font-medium text-slate-700 mb-1.5">{t('settings.mapTemplate')}</label>
<CustomSelect <CustomSelect
value="" value={mapTileUrl}
onChange={(value: string) => { if (value) setMapTileUrl(value) }} onChange={(value: string) => { if (value) setMapTileUrl(value) }}
placeholder={t('settings.mapTemplatePlaceholder.select')} placeholder={t('settings.mapTemplatePlaceholder.select')}
options={MAP_PRESETS.map(p => ({ options={MAP_PRESETS.map(p => ({