Skip to content

Commit

Permalink
fix: use the filtered budget lines
Browse files Browse the repository at this point in the history
captured in the demo
  • Loading branch information
fpigeonjr committed Dec 10, 2024
1 parent c54e751 commit 92fbfc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/cans/detail/Can.hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function useCan() {
[budgetLineItemsByFiscalYear]
);

const budgetLineAgreements = can?.budget_line_items?.map((item) => item.agreement) ?? [];
const budgetLineAgreements = budgetLineItemsByFiscalYear?.map((item) => item.agreement) ?? [];

const agreementTypesCount = React.useMemo(
() => getTypesCounts(budgetLineAgreements, "agreement_type"),
Expand Down

1 comment on commit 92fbfc2

@maiyerlee
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏👏👏

Please sign in to comment.