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

Being back /all view for map AdventureLink

This commit is contained in:
Sean Morley 2024-10-04 21:56:43 -04:00
parent f354cd1ffe
commit ed37ad45e4
4 changed files with 23 additions and 23 deletions

View file

@ -19,14 +19,14 @@
if (modal) {
modal.showModal();
}
let res = await fetch(`/api/adventures/?include_collections=false`, {
let res = await fetch(`/api/adventures/all/?include_collections=false`, {
method: 'GET'
});
const newAdventures = await res.json();
if (res.ok && adventures) {
adventures = newAdventures.results;
adventures = newAdventures;
}
isLoading = false;
});

View file

@ -736,11 +736,13 @@ it would also work to just use on:click on the MapLibre component itself. -->
timeZone: 'UTC'
})}
</p>
<p>
{new Date(visit.end_date).toLocaleDateString(undefined, {
timeZone: 'UTC'
})}
</p>
{#if visit.end_date}
<p>
{new Date(visit.end_date).toLocaleDateString(undefined, {
timeZone: 'UTC'
})}
</p>
{/if}
<div>
<button