stringify

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-12-12 12:30:56 +03:00
parent 956fdec7f5
commit 985b8ef315

View File

@ -62,7 +62,7 @@ export const Attendance = () => {
<th>Дата</th>
<th>Название занятия</th>
{data.students.map((student) => (
<th id={student.id || student.sub} key={student.sub}>{student.name || student.value || 'Имя не определено'}</th>
<th id={student.id || student.sub} key={student.sub}>{student.name || JSON.stringify(student.value) || 'Имя не определено'}</th>
))}
</tr>
</thead>