code refactor

This commit is contained in:
MaysWind
2024-12-18 22:40:12 +08:00
parent c2b1adf588
commit e050f30efa
5 changed files with 14 additions and 34 deletions
+2 -8
View File
@@ -981,15 +981,9 @@ export default {
return;
}
const filter = {
const changed = this.transactionsStore.updateTransactionListFilter({
accountIds: accountIds
};
if (datetimeConstants.allBillingCycleDateRangesMap[this.query.dateType] && !this.accountsStore.getAccountStatementDate(accountIds)) {
filter.dateType = datetimeConstants.allDateRanges.Custom.type;
}
const changed = this.transactionsStore.updateTransactionListFilter(filter);
});
this.showAccountPopover = false;