mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
fix bug: error in plans list page
This commit is contained in:
parent
810d46e40d
commit
a2a32ef3c6
@ -91,7 +91,7 @@ const PlansList: React.FC<PlansListProps> = ({ onError, onPlanSelection, onLogin
|
||||
const res = new Map<number, Map<number, Array<Plan>>>();
|
||||
for (const [groupId, plansByGroup] of byGroup) {
|
||||
const group = groups.find(g => g.id === groupId);
|
||||
if (!group.disabled) {
|
||||
if (group && !group.disabled) {
|
||||
res.set(groupId, groupBy(plansByGroup, 'plan_category_id'));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user