mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 09:01:14 +00:00
Fixed meal plan did not load when a containing recipe was deleted (closes #361)
This commit is contained in:
@@ -59,6 +59,11 @@ var calendar = $("#calendar").fullCalendar({
|
||||
"eventRender": function(event, element)
|
||||
{
|
||||
var recipe = JSON.parse(event.recipe);
|
||||
if (recipe === null || recipe === undefined)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var mealPlanEntry = JSON.parse(event.mealPlanEntry);
|
||||
var resolvedRecipe = FindObjectInArrayByPropertyValue(recipesResolved, "recipe_id", recipe.id);
|
||||
|
||||
|
Reference in New Issue
Block a user