Skip to content

Open source personal finance application

fix (Categories): remove deleted child category

ilkome68055f3dc050
diff --git a/store/categories/actions.js b/store/categories/actions.js
index 8cb12d50..bec2e41f 100644
--- a/store/categories/actions.js
+++ b/store/categories/actions.js
@@ -23,6 +23,11 @@ export default {
showInLastUsed: false,
showInQuickSelector: false,
}
+
+ for (const childCatId of cat.childIds) {
+ if (!items[childCatId])
+ items[categoryId].childIds = items[categoryId].childIds.filter(id => id !== childCatId)
+ }
}
}