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;