Skip to content

Commit

Permalink
fix(dashboard): masquer les sections de champs custo dans la fenêtre …
Browse files Browse the repository at this point in the history
…d'écition lorsqu'il n'y a aucun champ custo disponible pour l'équipe courante
  • Loading branch information
Arnaud AMBROSELLI committed Aug 28, 2023
1 parent 8fb31ac commit e90440c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dashboard/src/scenes/person/components/EditModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export default function EditModal({ person, selectedPanel, onClose, isMedicalFil
{!isMedicalFile &&
!['restricted-access'].includes(user.role) &&
customFieldsPersons.map(({ name, fields }, index) => {
if (!fields.filter((f) => f.enabled || f.enabledTeams?.includes(team._id)).length) return null;
return (
<div key={name + index}>
<div
Expand Down

0 comments on commit e90440c

Please sign in to comment.