X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/13812cb6b3f93966bffebfe118d2d7fa8623e137..ff85679c2bc5fcc4119ab4da563fa5222440f3ab:/src/components/SearchSectionReverse.svelte

diff --git a/src/components/SearchSectionReverse.svelte b/src/components/SearchSectionReverse.svelte
index aca422d..1861902 100644
--- a/src/components/SearchSectionReverse.svelte
+++ b/src/components/SearchSectionReverse.svelte
@@ -9,6 +9,8 @@
   export let zoom = '';
 
   function gotoCoordinates(newlat, newlon, newzoom) {
+    if (newlat === null || newlon === null) return;
+
     let params = new URLSearchParams();
     params.set('lat', newlat);
     params.set('lon', newlon);
