mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
prevent seeing undefinde if no recipes
This commit is contained in:
parent
0ef9b2fdb7
commit
646807eeab
|
|
@ -49,9 +49,9 @@ var calendar = $("#calendar").fullCalendar({
|
|||
var weekCosts = 0;
|
||||
var weekRecipeOrderMissingButtonHtml = "";
|
||||
var weekRecipeConsumeButtonHtml = "";
|
||||
var weekCostsHtml = "";
|
||||
if (weekRecipe !== null)
|
||||
{
|
||||
var weekCostsHtml = "";
|
||||
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
|
||||
{
|
||||
weekCosts = FindObjectInArrayByPropertyValue(recipesResolved, "recipe_id", weekRecipe.id).costs;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user