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}