1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] public list of plans fails to render if a group has no plans

This commit is contained in:
Sylvain 2021-06-30 09:18:06 +02:00
parent 9c6a7df0bf
commit 20bd3931d4
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Fix a bug: unable to filter by multiple user IDs in OpenAPI
- Fix a bug: do not display two empty categories in the plan creation form
- Fix a bug: do not return to the home page when clicking on previous in the machine description page
- Fix a bug: public list of plans fails to render if a group has no plans
- Tests for OpenAPI user trainings
- [TODO DEPLOY] `rails db:seed`
- [TODO DEPLOY] `rails fablab:maintenance:rebuild_stylesheet`

View File

@ -231,7 +231,7 @@ const PlansList: React.FC<PlansListProps> = ({ onError, onPlanSelection, onLogin
return (
<div key={groupId} className="plans-per-group">
<h2 className="group-title">{ groupName(groupId) }</h2>
{renderPlansByCategory(plansByGroup)}
{plansByGroup && renderPlansByCategory(plansByGroup)}
</div>
)
})}