1
0
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:
Du Peng 2021-08-24 10:49:34 +02:00
parent 810d46e40d
commit a2a32ef3c6

View File

@ -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'));
}
}