Skip to content

Commit c3fa2a5

Browse files
committed
fix: user groups without name counting
1 parent c94a3d9 commit c3fa2a5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

hwproj.front/src/components/Courses/StudentStats.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
313313
<Stack direction="row" spacing={1}>
314314
<GroupIcon style={{fontSize: "12px"}}/>
315315
<div>{studentGroups
316+
.filter(g => g.name && g.name.trim().length != 0)
316317
.map(r => r.name)
317318
.join(', ')}</div>
318319
</Stack>

0 commit comments

Comments
 (0)