diff --git a/src/app/services/formulaire/formulaire.service.ts b/src/app/services/formulaire/formulaire.service.ts index ec077467ef47179dbad00a44a6e3ca148c6b7424..7433bb6313fdaa5d40aaadf9c0743202e276d104 100644 --- a/src/app/services/formulaire/formulaire.service.ts +++ b/src/app/services/formulaire/formulaire.service.ts @@ -333,20 +333,9 @@ export class FormulaireService extends Observable { } } - // add fieldsets for existing PabCloisons if needed - // (when loading session only) - if (f.currentNub instanceof Pab) { - for (const child of f.currentNub.children) { - for (const e of f.allFormElements) { - if (e instanceof FieldsetContainer) { // @TODO manage many containers one day ? - e.addFromTemplate(0, undefined, child); - } - } - } - } - // when creating a new Pab, add one wall with one device, plus the downwall - if (f instanceof FormulairePab) { + // (when loading session only) + if (f instanceof FormulairePab && f.currentNub instanceof Pab) { // 1. one wall const newWall = Session.getInstance().createNub( new Props({