-
-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Removing a recipe ingredient doesn't remove its links to steps #3956
Comments
I discovered this when the Mealient app for Android wouldn't display one of my recipes after editing it. While I do think Mealient should handle this situation more gracefully, Mealie should avoid this in the first place. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Can this be re-opened? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I tried to figure out how to do this some weeks ago but couldn't see a clear path where I might make changes. Happy to try again with some direction? |
You'll probably want to add a check in the recipe service upon updating to remove any ingredient links for non-existent ingredients: https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/services/recipe/recipe_service.py |
First Check
What is the issue you are experiencing?
When a recipe ingredient is removed from the recipe, any recipe-step links for that ingredient are not removed from the steps.
Steps to Reproduce
ingredientReferences
on the step without a correspondingrecipeIngredient
.Please provide relevant logs
N/A
Mealie Version
v1.10.2
Deployment
Docker (Linux)
Additional Deployment Details
No response
The text was updated successfully, but these errors were encountered: