diff --git a/frontend/src/lib/components/AdventureModal.svelte b/frontend/src/lib/components/AdventureModal.svelte index f1e3064..6a5497a 100644 --- a/frontend/src/lib/components/AdventureModal.svelte +++ b/frontend/src/lib/components/AdventureModal.svelte @@ -59,8 +59,7 @@ lngLat: { lng: adventure.longitude, lat: adventure.latitude }, location: adventure.location || '', name: adventure.name, - activity_type: '', - lng: 0 + activity_type: '' } ]; } @@ -213,8 +212,7 @@ lngLat: { lng: longitude, lat: latitude }, location: data[0]?.display_name || '', name: data[0]?.name || '', - activity_type: data[0]?.type || '', - lng: 0 + activity_type: data[0]?.type || '' } ]; } @@ -249,6 +247,7 @@ let data = await res.json(); if (data.extract?.length > 0) { adventure.description = data.extract; + wikiError = ''; } else { wikiError = 'No description found'; } @@ -262,8 +261,7 @@ lngLat: e.detail.lngLat, name: '', location: '', - activity_type: '', - lng: 0 + activity_type: '' } ]; console.log(markers); @@ -550,8 +548,7 @@ lngLat: { lng: Number(place.lon), lat: Number(place.lat) }, location: place.display_name, name: place.name, - activity_type: place.type, - lng: 0 + activity_type: place.type } ]; }} @@ -586,27 +583,6 @@ it would also work to just use on:click on the MapLibre component itself. --> - {#if adventure.is_public} -
-

Share this Adventure!

-
-

- {window.location.origin}/adventures/{adventure.id} -

- -
-
- {/if} @@ -685,5 +661,24 @@ it would also work to just use on:click on the MapLibre component itself. --> {/if} + {#if adventure.is_public && adventure.id} +
+

Share this Adventure!

+
+

+ {window.location.origin}/adventures/{adventure.id} +

+ +
+
+ {/if}