diff --git a/web/src/components/detail/IngredientTableView.astro b/web/src/components/detail/IngredientTableView.astro index de3b63d..a9f4749 100644 --- a/web/src/components/detail/IngredientTableView.astro +++ b/web/src/components/detail/IngredientTableView.astro @@ -32,7 +32,7 @@ const tableView = true ingredients.map((ing, index) => ( <> - {ing.quantity.value.value} + {ing.quantity ? ing.quantity.value.value : ''} {ing.unit || ''} {ing.name}{ing.preparation ? ` (${ing.preparation})` : ''} diff --git a/web/src/components/detail/StepIngredientSideView.astro b/web/src/components/detail/StepIngredientSideView.astro index 1f5c1d8..9559954 100644 --- a/web/src/components/detail/StepIngredientSideView.astro +++ b/web/src/components/detail/StepIngredientSideView.astro @@ -5,6 +5,6 @@ const { ingredients, class: className } = Astro.props;
{ingredients.map(i => ( +
  • {i.quantity ? i.quantity.value.value : ''} {i.unit || ""} {i.name} {i.preparation ? `(${i.preparation})` : ''}
  • ))}
    \ No newline at end of file