fix transaction list not display after expand the month transaction list

This commit is contained in:
MaysWind
2025-05-24 22:25:23 +08:00
parent 5767acb29b
commit 387df07659
2 changed files with 26 additions and 21 deletions
+3 -3
View File
@@ -1274,9 +1274,9 @@ export const useTransactionsStore = defineStore('transactions', () => {
return services.getTransactionPictureUrlWithToken(pictureInfo.originalUrl, disableBrowserCache);
}
function collapseMonthInTransactionList({ month, collapse }: { month: TransactionMonthList, collapse: boolean }): void {
if (month) {
month.opened = !collapse;
function collapseMonthInTransactionList({ monthList, collapse }: { monthList: TransactionMonthList, collapse: boolean }): void {
if (monthList) {
monthList.opened = !collapse;
}
}