fix: some shit

This commit is contained in:
2024-01-03 20:20:56 +01:00
parent 7407260b79
commit e863e74e22
2 changed files with 1 additions and 2 deletions

View File

@ -110,7 +110,7 @@ function parseIngredients(children: DocumentChild[]): Recipe["ingredients"] {
if (child.type === "paragraph") {
const nextChild = children[i + 1];
if (nextChild.type !== "list") continue;
if (!nextChild || nextChild.type !== "list") continue;
ingredients.push({
name: getTextOfChild(child) || "",