Skip to content
Snippets Groups Projects
Commit 178033b7 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: force freeWorkshop value because it's now optional

parent 37ddac87
No related branches found
No related tags found
3 merge requests!418V2.1.0,!400V2.0,!230V2.0
......@@ -337,6 +337,9 @@ export class FormViewComponent implements OnInit {
const user = await this.profileService.getProfile();
const newStructure = new Structure(this.structureForm.value);
newStructure.hours = this.hoursForm.value;
if (!this.structureForm.value.freeWorkShop) {
newStructure.freeWorkShop = true;
}
this.structureService.createStructure(newStructure, this.profile).subscribe((struct) => {
if (user.job.hasPersonalOffer) {
this.structure = struct;
......
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