mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-04 21:15:22 +02:00
Fix ingredients not refreshed upon recipe change (#343)
This commit is contained in:
parent
8e4b951ecc
commit
df1bca6c6a
1 changed files with 7 additions and 10 deletions
|
@ -37,16 +37,13 @@ export default {
|
|||
props: {
|
||||
ingredients: Array,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
displayIngredients: [],
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.displayIngredients = this.ingredients.map(x => ({
|
||||
text: x,
|
||||
checked: false,
|
||||
}));
|
||||
computed: {
|
||||
displayIngredients() {
|
||||
return this.ingredients.map(x => ({
|
||||
text: x,
|
||||
checked: false,
|
||||
}));
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
generateKey(item, index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue