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

use already-set credit value as initial value in audit stepper

parent b11813ac
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,7 @@ export class NewDegreeAuditDialogComponent implements OnInit { ...@@ -127,7 +127,7 @@ export class NewDegreeAuditDialogComponent implements OnInit {
this.chosenCreditSettings.push( this.chosenCreditSettings.push(
this.fb.group({ this.fb.group({
course, course,
credits: this.fb.control('', Validators.required), credits: this.fb.control(course.credits || '', Validators.required),
}), }),
); );
}); });
......
...@@ -150,7 +150,7 @@ export class NewWhatIfAuditDialogComponent implements OnInit { ...@@ -150,7 +150,7 @@ export class NewWhatIfAuditDialogComponent implements OnInit {
this.chosenCreditSettings.push( this.chosenCreditSettings.push(
this.fb.group({ this.fb.group({
course, course,
credits: this.fb.control('', Validators.required), credits: this.fb.control(course.credits || '', Validators.required),
}), }),
); );
}); });
......
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