1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 14:59:36 +02:00

Fix location saving

This commit is contained in:
Sean Morley 2024-07-27 09:29:47 -04:00
parent a38887a602
commit 70d08eff8a
4 changed files with 15 additions and 20 deletions

View file

@ -161,6 +161,7 @@
function setLongLat(event: CustomEvent<Adventure>) {
console.log(event.detail);
isPointModalOpen = false;
}
</script>
@ -170,8 +171,6 @@
on:close={() => (isPointModalOpen = false)}
on:submit={setLongLat}
bind:adventure={newAdventure}
latitude={newAdventure.latitude || null}
longitude={newAdventure.longitude || null}
/>
{/if}