Vorbereitung für den Umzug auf den TALAS-Server

This commit is contained in:
ISA
2024-04-29 11:46:22 +02:00
parent 4e4755dad4
commit a07d5f940e
6 changed files with 10 additions and 1169 deletions

View File

@@ -22,8 +22,8 @@ function DataSheet() {
const selectedIndex = event.target.options.selectedIndex;
const areaName = event.target.options[selectedIndex].text;
setSelectedArea(areaName);
console.log("Area selected oder areaName in DataSheet.js:", areaName); // Nur zur Bestätigung in der Konsole
console.log("event.target:", event.target);
//console.log("Area selected oder areaName in DataSheet.js:", areaName); // Nur zur Bestätigung in der Konsole
//console.log("event.target:", event.target);
};
useEffect(() => {
@@ -33,7 +33,7 @@ function DataSheet() {
(system) => system.IdSystem
)
);
console.log("allowedSystems:", allowedSystems);
//console.log("allowedSystems:", allowedSystems);
// Filter unique areas that belong to allowed systems
const seenNames = new Set();
@@ -64,7 +64,7 @@ function DataSheet() {
const isUnique = !seenSystemNames.has(formattedName) && item.Allow === 1;
if (isUnique) {
seenSystemNames.add(formattedName); // Füge den formatierten Namen hinzu
console.log("Unique system in DataSheet:", formattedName); // Zeige den formatierten Namen in der Konsole
//console.log("Unique system in DataSheet:", formattedName); // Zeige den formatierten Namen in der Konsole
}
return isUnique;
});
@@ -79,14 +79,14 @@ function DataSheet() {
//---------------------------------------------------------
const handleCheckboxChange = (name, event) => {
const { checked } = event.target;
console.log(`Checkbox ${name} checked state:`, checked); // Log the checked state of the checkbox
//console.log(`Checkbox ${name} checked state:`, checked); // Log the checked state of the checkbox
setMapLayersVisibility((prev) => {
const newState = {
...prev,
[name]: checked,
};
console.log(`New mapLayersVisibility state:`, newState); // Log the new state after update
//console.log(`New mapLayersVisibility state:`, newState); // Log the new state after update
return newState;
});
};