fix: Area (Bereich) im dropdown nur einmal anzeigen
This commit is contained in:
@@ -342,8 +342,14 @@ function MapLayersControlPanel() {
|
||||
.map(p => [p.Area_Name, p])
|
||||
).values(),
|
||||
*/}
|
||||
{GisStationsStaticDistrict.Points.filter(p => !!p.Area_Name).map((item, index) => (
|
||||
<option key={item.Area_Name + "-" + item.IdLD} value={item.IdLD}>
|
||||
{[
|
||||
...new Map(
|
||||
(GisStationsStaticDistrict.Points || [])
|
||||
.filter(p => !!p.Area_Name)
|
||||
.map(p => [p.Area_Name, p])
|
||||
).values(),
|
||||
].map(item => (
|
||||
<option key={item.Area_Name} value={item.IdLD}>
|
||||
{item.Area_Name}
|
||||
</option>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user