refactor: SpecialitySection + TeacherSection (en cours)

This commit is contained in:
N3WT DE COMPET
2025-01-31 15:41:23 +01:00
parent a248898203
commit 72dd7699d6
6 changed files with 75 additions and 50 deletions

View File

@ -100,7 +100,7 @@ const ClassesSection = ({ classes, teachers, handleCreate, handleEdit, handleDel
transform: (row) => (
<div key={row.id} className="flex flex-wrap justify-center items-center space-x-2">
{row.teachers_details.map((teacher, index) => (
<TeacherLabel key={teacher.id} nom={teacher.last_name} prenom={teacher.first_name} index={index} />
<TeacherLabel key={`${teacher.id}-${index}`} nom={teacher.last_name} prenom={teacher.first_name} index={index} />
))}
</div>
)