collections v3

This commit is contained in:
Sean Morley
2024-07-15 18:01:49 -04:00
parent e533dda328
commit 7e5e4edd4d
9 changed files with 266 additions and 158 deletions

View File

@@ -18,7 +18,7 @@ export const load = (async (event) => {
let count = 0;
let adventures: Adventure[] = [];
let initialFetch = await fetch(
`${serverEndpoint}/api/adventures/filtered?types=visited,planned`,
`${serverEndpoint}/api/adventures/filtered?types=visited,planned&include_collections=false`,
{
headers: {
Cookie: `${event.cookies.get('auth')}`
@@ -369,6 +369,7 @@ export const actions: Actions = {
} else {
include_collections = 'false';
}
const order_direction = formData.get('order_direction') as string;
const order_by = formData.get('order_by') as string;