diff --git a/frontend/src/components/tutor_list/TutorList.vue b/frontend/src/components/tutor_list/TutorList.vue index d8625a7261b21c3ccc6eadd607a49ef25ccb758f..ad203a69a9ae152119fbe8c38df5403036a338dc 100644 --- a/frontend/src/components/tutor_list/TutorList.vue +++ b/frontend/src/components/tutor_list/TutorList.vue @@ -131,8 +131,7 @@ export default class TutorList extends Vue { get tutors () { var tlist = TutorOverview.state.tutors.map(tutor => { - var groups: Group[] - groups = [] + var groups: Group[] = [] this.userAccountGroups(tutor).then(function(value) { groups = value // Success! }, (reason) => { @@ -152,18 +151,6 @@ export default class TutorList extends Vue { return tlist } - get groups () { - return Assignments.state.groups.slice().sort((a, b) => { - const matches_a = a.name.match(/(\d+)/) - const number_a = Number(matches_a === null ? 0 : matches_a[1]) - - const matches_b = b.name.match(/(\d+)/) - const number_b = Number(matches_b === null ? 0 : matches_b[1]) - - return (number_a<number_b?-1:(number_a>number_b?1:0)) - }) - } - async userAccountGroups(tutor: Tutor) { const groups = await (await fetchUser(tutor.pk)).exerciseGroups return groups