diff --git a/src/components/Card/OverviewCard.astro b/src/components/Card/OverviewCard.astro index 8a73c9e..bd226c2 100644 --- a/src/components/Card/OverviewCard.astro +++ b/src/components/Card/OverviewCard.astro @@ -4,8 +4,7 @@ import TagRow from "./TagRow.astro" const { recipe } = Astro.props; -const headerImage = await client.collection("images").getOne(recipe.images[0]) -const image = await client.files.getRelativeURL(headerImage, headerImage.image) +const image = (await client.getRecipeImages(recipe.id))[0] ---