fix: handle empty recipeInstructions
Some checks failed
Deploy to SFTP Server / build (push) Failing after 3m4s

This commit is contained in:
Max Richter
2025-10-22 13:42:27 +02:00
parent 93c00e1c7e
commit 038e78f27d

View File

@@ -59,7 +59,7 @@ const resource = await memorium.listResource(
<h2>Ingredients</h2>
<ul>
{
resource?.content.recipeIngredient.map((ingredient) => (
resource?.content?.recipeIngredient.map((ingredient) => (
<li>{markdownToText(ingredient)}</li>
))
}
@@ -68,7 +68,7 @@ const resource = await memorium.listResource(
<h2>Steps</h2>
<ol>
{
resource?.content.recipeInstructions.map((ingredient) => (
resource?.content?.recipeInstructions.map((ingredient) => (
<li>{markdownToText(ingredient)}</li>
))
}