From 7596a916f80708a67c0122c58a05670231fe2e53 Mon Sep 17 00:00:00 2001 From: Christian Beutel <> Date: Sun, 24 Aug 2025 14:16:36 +0200 Subject: [PATCH] Fixes category in lists --- web/src/lib/stores/list_store.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/lib/stores/list_store.ts b/web/src/lib/stores/list_store.ts index ad03236e..d0376134 100644 --- a/web/src/lib/stores/list_store.ts +++ b/web/src/lib/stores/list_store.ts @@ -79,7 +79,7 @@ export async function lists_search_filter(filter: ListFilter, page: number = 1, export async function lists_show(id: string, handle?: string, f: (url: RequestInfo | URL, config?: RequestInit) => Promise = fetch) { const r = await f(`/api/v1/list/${id}?` + new URLSearchParams({ - expand: "author,trails,trails.author,list_share_via_list.actor", + expand: "author,trails,trails.author,trails.category,list_share_via_list.actor", ...(handle ? { handle } : {}) }), { method: 'GET', @@ -95,6 +95,7 @@ export async function lists_show(id: string, handle?: string, f: (url: RequestIn for (const trail of response.expand?.trails ?? []) { const gpxData: string = await fetchGPX(trail, f); trail.expand.gpx_data = gpxData; + trail.category = trail.expand?.category?.name ?? "-"; } list.set(response);