tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
fix leaflet icon params promise
awarm.space
3 months ago
ca0b0c1f
e505653e
+4
-2
1 changed file
expand all
collapse all
unified
split
app
[leaflet_id]
icon.tsx
+4
-2
app/[leaflet_id]/icon.tsx
···
24
24
process.env.SUPABASE_SERVICE_ROLE_KEY as string,
25
25
{ cookies: {} },
26
26
);
27
27
-
export default async function Icon(props: { params: { leaflet_id: string } }) {
27
27
+
export default async function Icon(props: {
28
28
+
params: Promise<{ leaflet_id: string }>;
29
29
+
}) {
28
30
let res = await supabase
29
31
.from("permission_tokens")
30
32
.select("*, permission_token_rights(*)")
31
31
-
.eq("id", props.params.leaflet_id)
33
33
+
.eq("id", (await props.params).leaflet_id)
32
34
.single();
33
35
let rootEntity = res.data?.root_entity;
34
36
let outlineColor, fillColor;