fix: some shit
This commit is contained in:
@ -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) || "",
|
||||
|
Reference in New Issue
Block a user