fix dropdown
solved by GPTchat
This commit is contained in:
parent
a16983e40b
commit
3fc2bd9225
@ -57,7 +57,7 @@ export const Legend : FC<LegendProps> = ({
|
||||
<Logo variant="default" />
|
||||
{
|
||||
mapColourScaleDefinitions.length > 1 ?
|
||||
<select className='style-select' onChange={e => onMapColourScale(e.target.value as BuildingMapTileset)}>
|
||||
<select className='style-select' onChange={e => onMapColourScale(e.target.value as BuildingMapTileset)} value={mapColourScale}>
|
||||
{
|
||||
mapColourScaleDefinitions.map(def =>
|
||||
<option key={def.mapStyle} value={def.mapStyle}>{def.legend.title}</option>
|
||||
|
Loading…
Reference in New Issue
Block a user