fix: handle empty recipeInstructions
Some checks failed
Deploy to SFTP Server / build (push) Failing after 3m4s
Some checks failed
Deploy to SFTP Server / build (push) Failing after 3m4s
This commit is contained in:
@@ -59,7 +59,7 @@ const resource = await memorium.listResource(
|
|||||||
<h2>Ingredients</h2>
|
<h2>Ingredients</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{
|
{
|
||||||
resource?.content.recipeIngredient.map((ingredient) => (
|
resource?.content?.recipeIngredient.map((ingredient) => (
|
||||||
<li>{markdownToText(ingredient)}</li>
|
<li>{markdownToText(ingredient)}</li>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
@@ -68,7 +68,7 @@ const resource = await memorium.listResource(
|
|||||||
<h2>Steps</h2>
|
<h2>Steps</h2>
|
||||||
<ol>
|
<ol>
|
||||||
{
|
{
|
||||||
resource?.content.recipeInstructions.map((ingredient) => (
|
resource?.content?.recipeInstructions.map((ingredient) => (
|
||||||
<li>{markdownToText(ingredient)}</li>
|
<li>{markdownToText(ingredient)}</li>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user