code refactor

This commit is contained in:
MaysWind
2025-02-06 23:36:03 +08:00
parent 95205d2f1d
commit 721eb122bd
5 changed files with 13 additions and 13 deletions
@@ -109,7 +109,7 @@ export function useCategoryFilterSettingPageBase(type?: string, allowCategoryTyp
const category = transactionCategoriesStore.allTransactionCategoriesMap[categoryId];
if (category && (!category.subCategories || !category.subCategories.length)) {
if (category && (!category.secondaryCategories || !category.secondaryCategories.length)) {
allCategoryIds[category.id] = false;
} else if (category) {
selectAllSubCategories(allCategoryIds, category, false);