Skip to content

Commit

Permalink
filter out instructors without instructional time.
Browse files Browse the repository at this point in the history
we have no way to present them in the graph, so let's not include them
at all.
  • Loading branch information
stopfstedt committed Jul 18, 2024
1 parent a446ee4 commit 6f280e2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ export default class CourseVisualizeInstructorsGraph extends Component {
.reduce((set, obj) => {
obj.instructorsWithInstructionalTime.forEach((instructorWithInstructionalTime) => {
const id = instructorWithInstructionalTime.instructor.id;
if (!instructorWithInstructionalTime.minutes) {
return;
}
let existing = findById(set, id);
if (!existing) {
existing = {
Expand Down

0 comments on commit 6f280e2

Please sign in to comment.