Fix transaction details
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
ba1ffd5cc6
commit
6712eef4c2
1 changed files with 2 additions and 2 deletions
|
@ -42,14 +42,14 @@ export default {
|
|||
if (!transaction || !transaction.categoryId) {
|
||||
return undefined;
|
||||
}
|
||||
return this.$store.getters.category(transaction.categoryId)
|
||||
return this.$store.getters.categories.find(category => category.id === transaction.categoryId)
|
||||
},
|
||||
budget: function(state) {
|
||||
const transaction = this.$store.getters.transaction
|
||||
if (!transaction || !transaction.budgetId) {
|
||||
return undefined;
|
||||
}
|
||||
return this.$store.getters.budget(transaction.budgetId)
|
||||
return this.$store.getters.budgets.find(budget => budget.id === transaction.budgetId)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue