mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-17 05:47:52 +00:00
fix: corrige tipagem do array classes na interface StudentData
This commit is contained in:
parent
5193ba95f4
commit
4cc6ab641e
@ -13,7 +13,7 @@ interface StudentData {
|
||||
status: 'active' | 'inactive';
|
||||
classes: {
|
||||
name: string;
|
||||
};
|
||||
}[];
|
||||
}
|
||||
|
||||
interface StudentWithDetails {
|
||||
@ -56,7 +56,7 @@ export function StudentsPage() {
|
||||
id: student.id,
|
||||
name: student.name,
|
||||
email: student.email,
|
||||
class_name: student.classes?.name || 'Sem turma',
|
||||
class_name: student.classes && student.classes[0] ? student.classes[0].name : 'Sem turma',
|
||||
stories_count: 0,
|
||||
status: student.status || 'active'
|
||||
}));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user