Skip to content

Commit 00680c7

Browse files
committed
Fix student list not displayed in admin view. #1052
1 parent 60d1b72 commit 00680c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/pages/studentmanagement/student-list/StudentList.helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function useStudentsForStudentList({
6464

6565
const [students, , , fetchStudents] = useFetchState({
6666
fetchFunction: async (tutorialId: string) => {
67-
return tutorialId === undefined ? getAllStudents() : getStudentsOfTutorial(tutorialId);
67+
return tutorialId ? getStudentsOfTutorial(tutorialId) : getAllStudents();
6868
},
6969
immediate: true,
7070
params: [tutorialId ?? ''],

0 commit comments

Comments
 (0)