Skip to content

Commit

Permalink
Merge pull request #1219 from CruGlobal/fourteen-month-report-redirect
Browse files Browse the repository at this point in the history
[no-Jira] Refresh 14 month report after account list redirect
  • Loading branch information
canac authored Dec 9, 2024
2 parents 773e733 + 10f02e5 commit dbfb393
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const FourteenMonthReport: React.FC<Props> = ({
useEffect(() => {
(async () => {
try {
setFourteenMonthReportError('');
const designationAccountFilter = designationAccounts?.length
? `&filter[designation_account_id]=${designationAccounts.join(',')}`
: '';
Expand Down Expand Up @@ -101,7 +102,7 @@ export const FourteenMonthReport: React.FC<Props> = ({
}
}
})();
}, [designationAccounts, currencyType]);
}, [accountListId, designationAccounts, currencyType]);

// Generate a table for each currency group in the report
const currencyTables = useMemo<CurrencyTable[]>(
Expand Down

0 comments on commit dbfb393

Please sign in to comment.