Open source personal finance application
chore: add comments
ilkomeeb9afed7ccc0
diff --git a/components/stat/chart/View.vue b/components/stat/chart/View.vueindex 5c6b3108..3bdd1c86 100644--- a/components/stat/chart/View.vue+++ b/components/stat/chart/View.vue@@ -108,8 +108,13 @@ export default defineComponent({// count total periodconst periodDate = this.$day().startOf(periodName).subtract(index, periodName).valueOf()- const categoriesIds = storeFilter.catsIds.length > 0 ? getCategoriesIds(storeFilter.catsIds, categoriesItems) : null- const walletsIds = storeFilter.walletsIds.length > 0 ? storeFilter.walletsIds : null+ // TODO: move it to a separate function getFilterParams+ const categoriesIds = storeFilter.catsIds.length > 0+ ? getCategoriesIds(storeFilter.catsIds, categoriesItems)+ : null+ const walletsIds = storeFilter.walletsIds.length > 0+ ? storeFilter.walletsIds+ : nullconst trnsIds = getTrnsIds({trnsItems,