From ca533a630d38d95c505223086cde5cca9c21468f Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 16 Mar 2022 18:55:09 +0100 Subject: [PATCH] =?UTF-8?q?Bul.=20BUT:=20n'affiche=20pas=20'd=C3=A9cision?= =?UTF-8?q?=20jury'=20quand=20il=20n'y=20en=20a=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/js/releve-but.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 || "-"); }