make dynamiclocation work in js

This commit is contained in:
Laura Klünder 2024-09-17 15:18:25 +02:00
parent a5ef064f63
commit 726d02f014

View file

@ -1709,7 +1709,7 @@ c3nav = {
// if location is not in the searchable list... // if location is not in the searchable list...
return return
} }
if (location.dynamic) { if (location.dynamic || location.locationtype === "dynamiclocation") {
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);