Skip to content
Snippets Groups Projects
Commit 2ab82b99 authored by Isaac Evavold's avatar Isaac Evavold Committed by Isaac Evavold
Browse files

ROENROLL-1863 default to first program of study in degree audit dialog

parent afd43172
No related branches found
No related tags found
No related merge requests found
Pipeline #40738 passed
......@@ -77,6 +77,12 @@ export class NewDegreeAuditDialogComponent implements OnInit {
public ngOnInit() {
this.degreePrograms$ = this.api.getStudentDegreePrograms().pipe(share());
this.degreePrograms$.subscribe(programs => {
if (programs.length > 0) {
this.chosenProgram.setValue(programs[0]);
}
});
this.institutions$ = this.api.getStaticData().pipe(share());
this.honorsOptions$ = combineLatest([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment