]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/assets/js/base.js
add pages /deletable.html, /polygons.html
[nominatim-ui.git] / src / assets / js / base.js
index 98f7ee8c5f4244b5771a6023a34985cc1b2ae1bb..a8f6d0a11b53d26c02bf7d93386a3e53b8e93659 100644 (file)
@@ -65,9 +65,9 @@ function fetch_from_api(endpoint_name, params, callback) {
 
   var param_names = Object.keys(params);
   for (var i = 0; i < param_names.length; i += 1) {
-    var val = param_names[keys[i]];
+    var val = param_names[i];
     if (typeof (val) === 'undefined' || val === '' || val === null) {
-      delete param_names[keys[i]];
+      delete param_names[i];
     }
   }