changed step header default and fixed ingredient rendering error
This commit is contained in:
parent
7f427c2d1f
commit
fd026154d8
@ -791,7 +791,7 @@ export default {
|
|||||||
let empty_step = {
|
let empty_step = {
|
||||||
instruction: "",
|
instruction: "",
|
||||||
ingredients: [],
|
ingredients: [],
|
||||||
show_as_header: true,
|
show_as_header: false,
|
||||||
time_visible: false,
|
time_visible: false,
|
||||||
ingredients_visible: true,
|
ingredients_visible: true,
|
||||||
instruction_visible: true,
|
instruction_visible: true,
|
||||||
|
@ -132,6 +132,7 @@ export default {
|
|||||||
let ingredient_list = this.steps
|
let ingredient_list = this.steps
|
||||||
.map((x) => x.ingredients)
|
.map((x) => x.ingredients)
|
||||||
.flat()
|
.flat()
|
||||||
|
.filter((x) => (x.food !== null && x.food !== undefined))
|
||||||
.map((x) => x.food.id)
|
.map((x) => x.food.id)
|
||||||
|
|
||||||
let params = {
|
let params = {
|
||||||
@ -231,7 +232,7 @@ export default {
|
|||||||
...i,
|
...i,
|
||||||
shop: checked,
|
shop: checked,
|
||||||
shopping_status: shopping_status, // possible values: true, false, null
|
shopping_status: shopping_status, // possible values: true, false, null
|
||||||
category: i.food.supermarket_category?.name,
|
category: i.food?.supermarket_category?.name,
|
||||||
shopping_list: shopping.map((x) => {
|
shopping_list: shopping.map((x) => {
|
||||||
return {
|
return {
|
||||||
mealplan: x?.recipe_mealplan?.name,
|
mealplan: x?.recipe_mealplan?.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user