a tool for shared writing and social publishing

fix leaflet icon params promise

+4 -2
+4 -2
app/[leaflet_id]/icon.tsx
··· 24 24 process.env.SUPABASE_SERVICE_ROLE_KEY as string, 25 25 { cookies: {} }, 26 26 ); 27 - export default async function Icon(props: { params: { leaflet_id: string } }) { 27 + export default async function Icon(props: { 28 + params: Promise<{ leaflet_id: string }>; 29 + }) { 28 30 let res = await supabase 29 31 .from("permission_tokens") 30 32 .select("*, permission_token_rights(*)") 31 - .eq("id", props.params.leaflet_id) 33 + .eq("id", (await props.params).leaflet_id) 32 34 .single(); 33 35 let rootEntity = res.data?.root_entity; 34 36 let outlineColor, fillColor;