Select a building to edit by clicking on the map…
+Click on the map to see more information about a building…
{ CONFIG.map((data_group) => ( diff --git a/app/src/frontend/map.js b/app/src/frontend/map.js index 17fc19c7..a874d515 100644 --- a/app/src/frontend/map.js +++ b/app/src/frontend/map.js @@ -125,7 +125,7 @@ function get_cat(is_building, location, url) { cat = search.cat; } else { matches = /\/map\/([^.]+).html/.exec(url); - cat = matches && matches[1]; + cat = (matches && matches.length < 1)? matches[1] : ""; } return cat; }