Answer the question
In order to leave comments, you need to log in
Why isn't computed updated?
budgets() {
const type = this.type
const budgets = this.$store.getters['budgets/all']
const filtered_budgets = budgets.filter(budget => budget.type === type)
console.log('TYPE', type)
console.log('BUDGETS', {
budgets,
filtered_budgets
})
return filtered_budgets
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question