hide hidden account/category in statistics page

This commit is contained in:
MaysWind
2021-02-02 00:36:42 +08:00
parent f94f556896
commit f6113f55ec
3 changed files with 36 additions and 19 deletions
+6
View File
@@ -771,6 +771,12 @@ const stores = {
item.account = state.allAccountsMap[item.accountId];
}
if (item.account && item.account.parentId !== '0') {
item.primaryAccount = state.allAccountsMap[item.account.parentId];
} else {
item.primaryAccount = item.account;
}
if (item.categoryId) {
item.category = state.allTransactionCategoriesMap[item.categoryId];
}