Skip to content

Commit

Permalink
fix(Classroom Monitor): Null pointer when exiting workgroup grading v…
Browse files Browse the repository at this point in the history
…iew (#1493)
  • Loading branch information
geoffreykwan authored Oct 26, 2023
1 parent fe3cf2b commit 8ce19f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class StudentGradingComponent implements OnInit {
private subscribeToCurrentWorkgroupChanged(): void {
this.subscriptions.add(
this.dataService.currentWorkgroupChanged$
.pipe(filter((workgroup) => workgroup != null))
.pipe(filter(({ currentWorkgroup }) => currentWorkgroup != null))
.subscribe(({ currentWorkgroup }) => {
const workgroupId = currentWorkgroup.workgroupId;
if (this.workgroupId !== workgroupId) {
Expand Down

0 comments on commit 8ce19f4

Please sign in to comment.