X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c061d3fd3d4c9135fdbda0af273d9fc0dc5b5535..23ad83a45b7cb0fb0c07109230e869ab2cb7b3b5:/src/components/ReverseLink.svelte

diff --git a/src/components/ReverseLink.svelte b/src/components/ReverseLink.svelte
index 2fd2c4c..cfea7c1 100644
--- a/src/components/ReverseLink.svelte
+++ b/src/components/ReverseLink.svelte
@@ -1,8 +1,8 @@
 <script>
 import { refresh_page } from '../lib/stores.js';
 
-export let lat;
-export let lon;
+export let lat = null;
+export let lon = null;
 export let zoom = null;
 export let extra_classes = '';
 
@@ -30,4 +30,8 @@ $: {
 }
 </script>
 
-<a on:click|preventDefault|stopPropagation={() => refresh_page('reverse', params)} href={href} class={extra_classes}><slot></slot></a>
+<a on:click|preventDefault|stopPropagation={() => refresh_page('reverse', params)}
+    href={href}
+    class={extra_classes}>
+  <slot></slot>
+</a>
