detect positions well

This commit is contained in:
Laura Klünder 2024-12-29 17:11:30 +01:00
parent 363b6b0075
commit 94dc9af7e6

View file

@ -2095,7 +2095,7 @@ c3nav = {
// if location is not in the searchable list... // if location is not in the searchable list...
return return
} }
if (location.dynamic || location.locationtype === "dynamiclocation") { if (location.dynamic || location.locationtype === "dynamiclocation" || location.locationtype === "position") {
if (!('available' in location)) { if (!('available' in location)) {
c3nav_api.get(`map/positions/${location.id}/`) c3nav_api.get(`map/positions/${location.id}/`)
.then(c3nav._dynamic_location_loaded); .then(c3nav._dynamic_location_loaded);