fix add to shopping from MealPlan Modal

This commit is contained in:
smilerz
2021-12-21 11:35:35 -06:00
parent 0f4bd9972e
commit 63fe174070
4 changed files with 6 additions and 8 deletions

View File

@ -1,7 +1,4 @@
<template>
<!-- add alert at top if offline -->
<!-- get autosync time from preferences and put fetching checked items on timer -->
<!-- allow reordering or items -->
<div id="shopping_line_item">
<div class="col-12">
<div class="row">
@ -231,10 +228,10 @@ export default {
return [this.$t("DelayUntil"), "-", this.formatDate(item.delay_until)].join(" ")
},
formatOneMealPlan: function (item) {
return item?.recipe_mealplan?.name
return item?.recipe_mealplan?.name ?? ""
},
formatOneRecipe: function (item) {
return item?.recipe_mealplan?.recipe_name
return item?.recipe_mealplan?.recipe_name ?? ""
},
formatOneNote: function (item) {
if (!item) {