diff --git a/src/app/components/section-canvas/section-canvas.component.ts b/src/app/components/section-canvas/section-canvas.component.ts index 81b4c45dde483584e6234ca028bf5cef1ae2d5cf..434a8428bbafa5088d195cbc19a53486c1d385a6 100644 --- a/src/app/components/section-canvas/section-canvas.component.ts +++ b/src/app/components/section-canvas/section-canvas.component.ts @@ -119,14 +119,16 @@ export class SectionCanvasComponent extends ResultsComponentDirective implements // traduction des symboles des variables calculées const re = this._result.resultElement; - for (const k in re.values) { - if (k !== re.vCalcSymbol) { - const lbl = k.toUpperCase(); - const er = re.getValue(k); - // this._resultElement.addExtraResult(lbl, er); - - if (this.isSectionLevel(k)) { - this.addLevel(er, k + " = " + this.formattedValue(er), SectionCanvasComponent.labelColors[k]); + if (re !== undefined) { + for (const k in re.values) { + if (k !== re.vCalcSymbol) { + const lbl = k.toUpperCase(); + const er = re.getValue(k); + // this._resultElement.addExtraResult(lbl, er); + + if (this.isSectionLevel(k)) { + this.addLevel(er, k + " = " + this.formattedValue(er), SectionCanvasComponent.labelColors[k]); + } } } }