Correction clés étrangères
This commit is contained in:
@ -42,9 +42,9 @@ function ResultatsTable({blocs, nuances, listes, resultats, siegesParListe}) {
|
||||
<TableRow key={liste.numero}>
|
||||
<TableCell>{liste.numero}</TableCell>
|
||||
<TableCell>{liste.nom}</TableCell>
|
||||
<TableCell bgColor={nuances.filter(nuance => nuance.code === liste.nuance)[0].couleur} sx={{padding: "0.2em"}}></TableCell>
|
||||
<TableCell sx={{backgroundColor: nuances.filter(nuance => nuance.code === liste.nuance)[0].couleur, padding: "0.2em"}}></TableCell>
|
||||
<TableCell>{liste.nuance}</TableCell>
|
||||
<TableCell bgColor={blocs.filter(bloc => bloc.nom === liste.bloc)[0].couleur} sx={{padding: "0.2em"}}></TableCell>
|
||||
<TableCell sx={{backgroundColor: blocs.filter(bloc => bloc.nom === liste.bloc)[0].couleur, padding: "0.2em"}}></TableCell>
|
||||
<TableCell>{liste.bloc}</TableCell>
|
||||
<TableCell>{voix_listes[liste.numero] || 0}</TableCell>
|
||||
<TableCell>{(100 * (voix_listes[liste.numero] || 0) / resultats.inscrits).toFixed(2)} %</TableCell>
|
||||
|
Reference in New Issue
Block a user