refactor: Console.log durch localStorage ersetzt für bessere Debugging-Übersicht
- Viele console.log-Ausgaben auskommentiert und durch localStorage ersetzt. - Debugging-Daten werden nun persistent gespeichert, um eine einfachere Nachverfolgung zu ermöglichen. - Verbessert die Übersichtlichkeit und reduziert das Scrollen in der Konsole.
This commit is contained in:
@@ -36,8 +36,10 @@ export const createAndSetDevices = async (systemId, setMarkersFunction, GisSyste
|
||||
const getIdSystemAndAllowValueMap = new Map(GisSystemStatic.map((system) => [system.IdSystem, system.Allow]));
|
||||
|
||||
if (jsonResponse.Points && statusResponse.Statis) {
|
||||
console.log("jsonResponse.Points: ", jsonResponse.Points);
|
||||
console.log("statusResponse.Statis: ", statusResponse.Statis);
|
||||
//console.log("jsonResponse.Points: ", jsonResponse.Points);
|
||||
//console.log("statusResponse.Statis: ", statusResponse.Statis);
|
||||
localStorage.setItem("jsonResponse.Points", JSON.stringify(jsonResponse.Points));
|
||||
localStorage.setItem("statusResponse.Statis", JSON.stringify(statusResponse.Statis));
|
||||
const statisMap = new Map(statusResponse.Statis.map((s) => [s.IdLD, s]));
|
||||
let markersData = jsonResponse.Points.filter((station) => station.System === systemId && getIdSystemAndAllowValueMap.get(station.System) === 1).map((station) => {
|
||||
const statis = statisMap.get(station.IdLD);
|
||||
@@ -111,7 +113,6 @@ export const createAndSetDevices = async (systemId, setMarkersFunction, GisSyste
|
||||
</div>
|
||||
`);
|
||||
|
||||
|
||||
return marker;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user