Skip to content

Commit

Permalink
fix(Manage Students): Sometimes does not load any workgroups (#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreykwan authored Oct 6, 2023
1 parent deea93c commit 44a0995
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export class ClassroomMonitorComponent implements OnInit {

ngOnDestroy(): void {
this.subscriptions.unsubscribe();
this.dataService.clearCurrentPeriod();
}

private initializeNotebook(): void {
Expand Down
4 changes: 4 additions & 0 deletions src/assets/wise5/services/teacherDataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,10 @@ export class TeacherDataService extends DataService {
}
}

clearCurrentPeriod(): void {
this.currentPeriod = null;
}

getCurrentPeriod() {
return this.currentPeriod;
}
Expand Down

0 comments on commit 44a0995

Please sign in to comment.