From 81b5df434f36865200ae2b3e1778107e79231dab Mon Sep 17 00:00:00 2001 From: Kyler Chin <7539174+kylerchin@users.noreply.github.com> Date: Sun, 17 Nov 2024 00:55:25 -0800 Subject: [PATCH] fix extra quotations bricking route fetch --- src/components/RouteScreen.svelte | 2 +- src/components/sidebarInternals.svelte | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/components/RouteScreen.svelte b/src/components/RouteScreen.svelte index 121a2d6..3eb4eb5 100644 --- a/src/components/RouteScreen.svelte +++ b/src/components/RouteScreen.svelte @@ -118,7 +118,7 @@ } let url = new URL( - `https://birch.catenarymaps.org/route_info?chateau=${routestack.chateau_id}&route_id=${encodeURIComponent(routestack.route_id)}` + `https://birch.catenarymaps.org/route_info?chateau=${routestack.chateau_id}&route_id=${encodeURIComponent(routestack.route_id.replace(/^\"/, "").replace(/\"$/, ""))}` ); await fetch(url.toString()).then(async (response) => { diff --git a/src/components/sidebarInternals.svelte b/src/components/sidebarInternals.svelte index e23b61d..4f81144 100644 --- a/src/components/sidebarInternals.svelte +++ b/src/components/sidebarInternals.svelte @@ -295,7 +295,24 @@ }); }} > - + { + #if show_gtfs_ids_store + } +
+ {option.data.chateau_id} + { + #if option.data.route_id + + } + {option.data.route_id} + + + {/if}
+ {/if} {#if option.data.name}