Skip to content
Snippets Groups Projects
Commit 37fb000b authored by mathias.chouet's avatar mathias.chouet
Browse files

fix jalhyd#106 PAB deserialisation

parent 2bf250a8
No related branches found
No related tags found
1 merge request!49Resolve "Ajout du module de calcul d'une passe à bassins"
...@@ -334,8 +334,13 @@ export class FormulaireService extends Observable { ...@@ -334,8 +334,13 @@ export class FormulaireService extends Observable {
} }
// when creating a new Pab, add one wall with one device, plus the downwall // when creating a new Pab, add one wall with one device, plus the downwall
// (when loading session only) // (when loading session, those items are already present)
if (f instanceof FormulairePab && f.currentNub instanceof Pab) { if (
f instanceof FormulairePab
&& f.currentNub instanceof Pab
&& f.currentNub.children.length === 0
&& f.currentNub.downWall === undefined
) {
// 1. one wall // 1. one wall
const newWall = Session.getInstance().createNub( const newWall = Session.getInstance().createNub(
new Props({ new Props({
......
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