Skip to content

Commit

Permalink
team suggestsions without sections
Browse files Browse the repository at this point in the history
  • Loading branch information
NatTuck committed Feb 6, 2025
1 parent 75de47e commit beeb2ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/teams/team-suggestions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ function SectionSuggestions({data, active, section}) {
let names = Map();
let students = [];
for (let reg of data.course.regs) {
if (reg.is_student && !busy.has(reg.user_id) && reg.section == section) {
if (reg.is_student && !busy.has(reg.user_id) &&
(reg.section == section || section == "default")) {
let user = reg.user;
names = names.set(user.id, user.name);
students.push(user.id);
Expand Down

0 comments on commit beeb2ac

Please sign in to comment.