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

PAB variated results : protection against undefined variables

parent 6e67122f
No related branches found
No related tags found
No related merge requests found
......@@ -305,7 +305,7 @@ export class PabProfileGraphComponent extends ResultsComponent {
});
dataN.push({
x: x,
y: nextZ1.toFixed(nDigits)
y: (nextZ1 !== undefined ? nextZ1.toFixed(nDigits) : "")
});
i++;
......@@ -314,7 +314,7 @@ export class PabProfileGraphComponent extends ResultsComponent {
// extend downstream
dataN.push({
x: (Number(xs[xs.length - 1]) + pabLength5Pct).toFixed(nDigits),
y: this._results.Z2[n].toFixed(nDigits)
y: (this._results.Z2[n] ? this._results.Z2[n].toFixed(nDigits) : "")
});
ret.push({
......
......@@ -114,7 +114,7 @@ export class PabResultsTableComponent extends ResultsComponent {
const rln = pr.cloisonAvalResults.resultElements[vi].values;
this._dataSet.push([
this.intlService.localizeText("INFO_LIB_AVAL"),
pr.Z2[vi].toFixed(nDigits),
(pr.Z2[vi] !== undefined ? pr.Z2[vi].toFixed(nDigits) : ""),
rln.ZRAM.toFixed(nDigits),
rln.DH.toFixed(nDigits),
rln.Q.toFixed(nDigits),
......
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