diff --git a/src/components/Card/TagRow.astro b/src/components/Card/TagRow.astro index af56aec..28ec731 100644 --- a/src/components/Card/TagRow.astro +++ b/src/components/Card/TagRow.astro @@ -2,21 +2,11 @@ import client from "../../data/pocketbase" interface Props { - tagIds: string[] + tags: string[] } -const { tagIds } = Astro.props +const { tags } = Astro.props -const tags = tagIds && tagIds.length > 0 - ? await Promise.all(tagIds.map(async (tagId: string) => { - try { - const tagData = await client.collection("tags").getOne(tagId) - return { name: tagData.name, id: tagId } - } catch (error) { - return null - } - })) - : [] ---
{waitTime} Wait
)} {re.rating !== 0 && ({re.rating}
/10
)}• {i.quantity} {i.unit || " "} {i.name}
{s.instruction}
{s.ingredients && s.ingredients.length > 0 && ({re.name}