mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
feat: Migrate from Tandoor (#2438)
* added tandoor migration to backend * added tandoor migration to frontend * updated tests * ignore 0 amounts * refactored ingredient display calculation * fix parsing tandoor recipes with optional data * generated frontend types * fixed inconsistent default handling and from_orm * removed unused imports
This commit is contained in:
parent
c25b58e404
commit
0f896107f9
18 changed files with 559 additions and 236 deletions
|
@ -11,6 +11,8 @@ function sanitizeIngredientHTML(rawHtml: string) {
|
|||
}
|
||||
|
||||
export function parseIngredientText(ingredient: RecipeIngredient, disableAmount: boolean, scale = 1): string {
|
||||
// TODO: the backend now supplies a "display" property which does this for us, so we don't need this function
|
||||
|
||||
if (disableAmount) {
|
||||
return ingredient.note || "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue