diff --git a/CHANGELOG.md b/CHANGELOG.md index b4c240aca..4f47c2e8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Fix a bug: invalid ventilation for amount coupons - Fix a bug: invalid VAT for invoices using amount coupons - Fix a bug: invalid 1 cent rounding for invoices using coupons +- Fix a bug: plans list error when there was no plan for the user's group - Fix a security issue: updated nokogiri to 1.13.9 to fix [GHSA-2qc6-mcvw-92cw](https://github.com/advisories/GHSA-2qc6-mcvw-92cw) - [TODO DEPLOY] `rails fablab:maintenance:regenerate_statistics[2021,6]` - [TODO DEPLOY] `rails fablab:setup:set_admins_group` diff --git a/app/frontend/src/javascript/components/plans/plans-list.tsx b/app/frontend/src/javascript/components/plans/plans-list.tsx index 9354da44b..40e7374aa 100644 --- a/app/frontend/src/javascript/components/plans/plans-list.tsx +++ b/app/frontend/src/javascript/components/plans/plans-list.tsx @@ -235,7 +235,7 @@ export const PlansList: React.FC = ({ onError, onPlanSelection, {plans && Array.from(filteredPlans()).map(([groupId, plansByGroup]) => { return (
- {plansByGroup.size > 0 &&

{ groupName(groupId) }

} + {plansByGroup?.size > 0 &&

{ groupName(groupId) }

} {plansByGroup && renderPlansByCategory(plansByGroup)}
);