diff --git a/app/static/js/releve-but.js b/app/static/js/releve-but.js index 481dd313..1550f889 100644 --- a/app/static/js/releve-but.js +++ b/app/static/js/releve-but.js @@ -224,7 +224,9 @@ class releveBUT extends HTMLElement { }).join("") }*/ this.shadow.querySelector(".infoSemestre").innerHTML = output; - this.shadow.querySelector(".decision").innerHTML = "Décision jury: " + (data.semestre.decision?.code || ""); + if (data.semestre.decision?.code) { + this.shadow.querySelector(".decision").innerHTML = "Décision jury: " + (data.semestre.decision?.code || ""); + } this.shadow.querySelector("#ects_tot").innerHTML = "ECTS : " + (data.semestre.ECTS?.acquis || "-") + " / " + (data.semestre.ECTS?.total || "-"); }