mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
Fix ingredients not refreshed upon recipe change (#343)
This commit is contained in:
parent
8e4b951ecc
commit
df1bca6c6a
@ -37,16 +37,13 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
ingredients: Array,
|
ingredients: Array,
|
||||||
},
|
},
|
||||||
data() {
|
computed: {
|
||||||
return {
|
displayIngredients() {
|
||||||
displayIngredients: [],
|
return this.ingredients.map(x => ({
|
||||||
};
|
text: x,
|
||||||
},
|
checked: false,
|
||||||
mounted() {
|
}));
|
||||||
this.displayIngredients = this.ingredients.map(x => ({
|
},
|
||||||
text: x,
|
|
||||||
checked: false,
|
|
||||||
}));
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
generateKey(item, index) {
|
generateKey(item, index) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user