WIP: Kabelstrecken localStorage polylineVisible_m12_u484 Wert bleibt stabil aber wenn true ist un dich die Seite neu ladee dann werden die Kabelstrecken nicht mehr ausgeblendet

This commit is contained in:
ISA
2025-08-21 14:31:55 +02:00
parent e7192a7623
commit c6871692aa
6 changed files with 5 additions and 8 deletions

View File

@@ -369,9 +369,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
// Wenn TALAS nicht erlaubt ist, Polyline-Checkbox und Anzeige deaktivieren
if (!isTalasAllowed) {
if (polylineVisible) {
dispatch(setPolylineVisible(false));
}
cleanupPolylinesForMemory(polylines, map);
setPolylines([]);
return;