diff --git a/src/app/form/form-view/form-view.component.ts b/src/app/form/form-view/form-view.component.ts index c9874c160ef0c0f986b2db2bf92551b2d40328d7..965e77fc8e0eeefe708b543b83cbd62053a53934 100644 --- a/src/app/form/form-view/form-view.component.ts +++ b/src/app/form/form-view/form-view.component.ts @@ -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;