From 7222237e46dc36ccd578d45cd5e989b134689d4e Mon Sep 17 00:00:00 2001 From: Ismail Ali Date: Wed, 21 May 2025 22:42:56 +0200 Subject: [PATCH] fix: DataSheet control panel wird angezeigt --- components/DataSheet.js | 11 ++--------- components/mainComponent/MapComponent.js | 1 + config/appVersion.js | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/components/DataSheet.js b/components/DataSheet.js index 5ab205684..90050642b 100644 --- a/components/DataSheet.js +++ b/components/DataSheet.js @@ -104,7 +104,7 @@ function DataSheet() { key: system.Name.replace(/[\s\-]+/g, ""), // Internen Schlüssel für die MapLayersVisibility-Logik })) ); - }, [GisStationsStaticDistrict]); + }, [GisStationsStaticDistrict, GisSystemStatic]); const handleCheckboxChange = (key, event) => { if (editMode) return; @@ -159,15 +159,8 @@ function DataSheet() { return isUnique; }); - setStationListing( - filteredAreas.map((area, index) => ({ - id: area.IdArea || index + 1, - name: area.Area_Name || "Unbekannt", - })) - ); - console.log("📌 stationListing aktualisiert:", filteredAreas); - }, [GisStationsStaticDistrict]); + }, [GisStationsStaticDistrict, GisSystemStatic]); //--------------------------- return ( diff --git a/components/mainComponent/MapComponent.js b/components/mainComponent/MapComponent.js index 7dac1abe1..1df3f7c43 100644 --- a/components/mainComponent/MapComponent.js +++ b/components/mainComponent/MapComponent.js @@ -878,6 +878,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { }, []); //--------------------------------------------- + //-------------------------------------------- return ( <> diff --git a/config/appVersion.js b/config/appVersion.js index cc51919df..e88713802 100644 --- a/config/appVersion.js +++ b/config/appVersion.js @@ -1,2 +1,2 @@ // /config/appVersion -export const APP_VERSION = "1.1.135"; +export const APP_VERSION = "1.1.136";