GisSystemStytic system => system.IdSystem === 1 && system.Allow === 1 && system.Map === 1 dann anzeigen in controll panel

This commit is contained in:
ISA
2025-08-11 08:52:46 +02:00
parent 854eff668a
commit 85266aa1ed
6 changed files with 11 additions and 7 deletions

View File

@@ -99,7 +99,9 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
const GisSystemStatic = useSelector(selectGisSystemStatic);
// Prüfen, ob TALAS (IdSystem 1) erlaubt ist
const isTalasAllowed = Array.isArray(GisSystemStatic)
? GisSystemStatic.some(system => system.IdSystem === 1 && system.Allow === 1)
? GisSystemStatic.some(
system => system.IdSystem === 1 && system.Allow === 1 && system.Map === 1
)
: false;
const isPoiTypLoaded = useSelector(state => state.poiTypes.status === "succeeded");