From 3725d508ab9e697f5528cef73a1f9f666e73cefa Mon Sep 17 00:00:00 2001 From: Theal0 Date: Thu, 10 Jun 2021 12:47:28 +0200 Subject: [PATCH] =?UTF-8?q?Release=201.4=20Erreur=20de=20la=20page=20blanc?= =?UTF-8?q?he=20li=C3=A9e=20a=20une=20valeur=20de=20rang=20inexistant=20r?= =?UTF-8?q?=C3=A9solu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ScoDoc/GestionSemestre/Bulletin.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ScoDoc/GestionSemestre/Bulletin.js b/src/ScoDoc/GestionSemestre/Bulletin.js index aa0d372..f955a5c 100644 --- a/src/ScoDoc/GestionSemestre/Bulletin.js +++ b/src/ScoDoc/GestionSemestre/Bulletin.js @@ -99,7 +99,9 @@ class Bulletin extends Component { Min: {this.state.bltn.note.min} Max: {this.state.bltn.note.max} - Classement: {this.state.bltn.rang.value}/{this.state.bltn.rang.ninscrits} + {this.state.bltn.hasOwnProperty('rang') && + Classement: {this.state.bltn.rang.value}/{this.state.bltn.rang.ninscrits} + } @@ -119,7 +121,9 @@ class Bulletin extends Component { Min: {ue.note.min} Max: {ue.note.max} - Classement: {ue.rang}/{this.state.bltn.rang.ninscrits} + {ue.hasOwnProperty('rang') && + Classement: {ue.rang}/{this.state.bltn.rang.ninscrits} + } @@ -137,7 +141,9 @@ class Bulletin extends Component { Min: {mod.note.min} Max: {mod.note.max} - Classement: {mod.rang.value}/{this.state.bltn.rang.ninscrits} + {mod.hasOwnProperty('rang') && + Classement: {mod.rang.value}/{this.state.bltn.rang.ninscrits} + } Coefficient: {mod.coefficient}