fix: Area (Bereich) im dropdown nur einmal anzeigen

This commit is contained in:
ISA
2025-08-20 09:20:22 +02:00
parent 9a2b438eaf
commit 0ea8e090d2
5 changed files with 13 additions and 7 deletions

View File

@@ -24,4 +24,4 @@ NEXT_PUBLIC_USE_MOCKS=true
# z.B. http://10.10.0.13/xyz/index.aspx -> basePath in config.json auf /xyz setzen # z.B. http://10.10.0.13/xyz/index.aspx -> basePath in config.json auf /xyz setzen
# basePath wird jetzt in public/config.json gepflegt # basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.1.318 NEXT_PUBLIC_APP_VERSION=1.1.319

View File

@@ -25,4 +25,4 @@ NEXT_PUBLIC_USE_MOCKS=false
# basePath wird jetzt in public/config.json gepflegt # basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.1.318 NEXT_PUBLIC_APP_VERSION=1.1.319

View File

@@ -342,8 +342,14 @@ function MapLayersControlPanel() {
.map(p => [p.Area_Name, p]) .map(p => [p.Area_Name, p])
).values(), ).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} {item.Area_Name}
</option> </option>
))} ))}

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "nodemap", "name": "nodemap",
"version": "1.1.318", "version": "1.1.319",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "nodemap", "name": "nodemap",
"version": "1.1.318", "version": "1.1.319",
"dependencies": { "dependencies": {
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "nodemap", "name": "nodemap",
"version": "1.1.318", "version": "1.1.319",
"dependencies": { "dependencies": {
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",