From ca0b0c1f1e0ff4d24251a60ed2351c045345fbb4 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Wed, 26 Nov 2025 14:08:10 -0500 Subject: [PATCH] fix leaflet icon params promise --- app/[leaflet_id]/icon.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/[leaflet_id]/icon.tsx b/app/[leaflet_id]/icon.tsx index fb597e5c..15a6a548 100644 --- a/app/[leaflet_id]/icon.tsx +++ b/app/[leaflet_id]/icon.tsx @@ -24,11 +24,13 @@ let supabase = createServerClient( process.env.SUPABASE_SERVICE_ROLE_KEY as string, { cookies: {} }, ); -export default async function Icon(props: { params: { leaflet_id: string } }) { +export default async function Icon(props: { + params: Promise<{ leaflet_id: string }>; +}) { let res = await supabase .from("permission_tokens") .select("*, permission_token_rights(*)") - .eq("id", props.params.leaflet_id) + .eq("id", (await props.params).leaflet_id) .single(); let rootEntity = res.data?.root_entity; let outlineColor, fillColor; -- 2.51.2