]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/3571'
authorTom Hughes <tom@compton.nu>
Sun, 19 Jun 2022 11:33:52 +0000 (12:33 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 19 Jun 2022 11:33:52 +0000 (12:33 +0100)
app/assets/javascripts/edit/id.js.erb

index 02299d2151b4c53a7d28b8e089344c50e629cd99..6a68b6b2d9b8be13a8b08819753ce8a890da98d2 100644 (file)
@@ -4,7 +4,8 @@ $(document).ready(function () {
   var id = $("#id-embed");
 
   if (id.data("configured") === true) {
-    var hashParams = OSM.params(location.hash.substring(1));
+    var hash = location.hash.substring(1);
+    var hashParams = hash ? OSM.params(hash) : {};
     var mapParams = OSM.mapParams();
     var params = {};