Default new ingredients to qty 0 so they render correctly

This commit is contained in:
Michael Genson 2025-07-11 20:05:34 +00:00
commit 6fa1f6c4c6

View file

@ -152,7 +152,7 @@ class IngredientUnit(CreateIngredientUnit):
class RecipeIngredientBase(MealieModel):
quantity: NoneFloat = 1
quantity: NoneFloat = 0
unit: IngredientUnit | CreateIngredientUnit | None = None
food: IngredientFood | CreateIngredientFood | None = None
note: str | None = ""