mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-22 00:13:45 -05:00
fix preview transactions not showing on multi-account views (#5135)
This commit is contained in:
@@ -58,6 +58,7 @@ export function useAccountPreviewTransactions({
|
||||
|
||||
const accountSchedulesFilter = useCallback(
|
||||
(schedule: ScheduleEntity) =>
|
||||
!accountId ||
|
||||
schedule._account === accountId ||
|
||||
getTransferAccountByPayee(schedule._payee)?.id === accountId,
|
||||
[accountId, getTransferAccountByPayee],
|
||||
@@ -82,10 +83,10 @@ export function useAccountPreviewTransactions({
|
||||
return useMemo(() => {
|
||||
if (!accountId) {
|
||||
return {
|
||||
previewTransactions: [],
|
||||
runningBalances: new Map(),
|
||||
isLoading: false,
|
||||
error: undefined,
|
||||
previewTransactions: allPreviewTransactions,
|
||||
runningBalances: allRunningBalances,
|
||||
isLoading,
|
||||
error,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user