Commit 9966e0fc authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Removed debug messages

parent 0029e79a
No related merge requests found
Showing with 3 additions and 6 deletions
+3 -6
...@@ -95,14 +95,11 @@ export class Pab extends Nub { ...@@ -95,14 +95,11 @@ export class Pab extends Nub {
if (c.props.calcType === CalculatorType.PabCloisons) { // who knows ? if (c.props.calcType === CalculatorType.PabCloisons) { // who knows ?
const childUid = c.uid; const childUid = c.uid;
const targetCloisonsUid = c.props.modeleCloisons; const targetCloisonsUid = c.props.modeleCloisons;
console.log(`==> relinking ${childUid} to ${targetCloisonsUid}`);
// find child PabCloisons to relink // find child PabCloisons to relink
const pabCloisons = (this.getChild(childUid) as PabCloisons); const pabCloisons = (this.getChild(childUid) as PabCloisons);
if (pabCloisons) { if (pabCloisons) {
pabCloisons.setModel(targetCloisonsUid); pabCloisons.setModel(targetCloisonsUid);
} else { } // else cannot find target
console.error("fixPAB : cannot find child PabCloisons");
}
} }
} }
} }
......
...@@ -104,9 +104,9 @@ export class PabCloisons extends Cloisons { ...@@ -104,9 +104,9 @@ export class PabCloisons extends Cloisons {
const cloisons = (Session.getInstance().findNubByUid(modelUid) as Cloisons); const cloisons = (Session.getInstance().findNubByUid(modelUid) as Cloisons);
if (cloisons) { if (cloisons) {
this.initModelCloisons(cloisons); this.initModelCloisons(cloisons);
} else { } /* else {
console.error("PabCloisons.setModel : cannot find target Cloisons"); console.error("PabCloisons.setModel : cannot find target Cloisons");
} } */
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment