Skip to content

Open source personal finance application

fix categoriesForBeParent getter

ilkome79246fa1c4d2
diff --git a/store/categories/getters.js b/store/categories/getters.js
index 90bc7f62..1378a021 100644
--- a/store/categories/getters.js
+++ b/store/categories/getters.js
@@ -31,7 +31,6 @@ export default {
const categoriesForBeParent = []
for (const categoryId of categoriesRootIds) {
- if (categoryId === 'transfer') { break }
let isTrns = false
for (const trnId in trns) {
if (trns[trnId].categoryId === categoryId) {
@@ -39,7 +38,7 @@ export default {
break
}
}
- if (!isTrns) {
+ if (!isTrns && categoryId !== 'transfer') {
categoriesForBeParent.push(categoryId)
}
}