Skip to content

Commit 4051731

Browse files
committed
fix: group students counting
1 parent 865a71d commit 4051731

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ const MentorWorkspaceModal: FC<MentorWorkspaceProps> = (props) => {
5050
try {
5151
const workspaceViewModel: EditMentorWorkspaceDTO = {
5252
homeworkIds: state.selectedHomeworks.map(homeworkViewModel => homeworkViewModel.id!),
53-
studentIds: state.selectedStudents.map(accountData => accountData.userId!)
54-
.concat(state.selectedGroups.flatMap(g => g.studentsIds ?? [])),
53+
studentIds: state.selectedStudents.map(accountData => accountData.userId!),
5554
groupIds: state.selectedGroups.map(groupViewModel => groupViewModel.id!)
5655
}
5756

0 commit comments

Comments
 (0)