X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/1df5c38175a3d15f8e595f49506b4dfb46e73d29..b687c8f1cbd62f88c61db9b209bc8f7145203d3c:/src/assets/js/base.js?ds=inline diff --git a/src/assets/js/base.js b/src/assets/js/base.js index 98f7ee8..a8f6d0a 100644 --- a/src/assets/js/base.js +++ b/src/assets/js/base.js @@ -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]; } }