Fix Columna Faltante
This commit is contained in:
@@ -83,22 +83,23 @@ export const ResultadosRankingMunicipioWidget = () => {
|
|||||||
])}
|
])}
|
||||||
</tr>
|
</tr>
|
||||||
{/* Fila 3: Sub-cabeceras (Partido, %) */}
|
{/* Fila 3: Sub-cabeceras (Partido, %) */}
|
||||||
<tr>
|
<tr>
|
||||||
{
|
<th />
|
||||||
// Usamos un bucle map simple en lugar de flatMap.
|
{
|
||||||
// React manejará la creación de un array de nodos sin problemas.
|
// Usamos un bucle map simple en lugar de flatMap.
|
||||||
rankingData.categorias.map(cat => (
|
// React manejará la creación de un array de nodos sin problemas.
|
||||||
// Usamos un Fragmento (<>) para agrupar los 4 <th> de cada categoría
|
rankingData.categorias.map(cat => (
|
||||||
// sin añadir un nodo extra al DOM.
|
// Usamos un Fragmento (<>) para agrupar los 4 <th> de cada categoría
|
||||||
<React.Fragment key={`subheaders-${cat.id}`}>
|
// sin añadir un nodo extra al DOM.
|
||||||
<th className="sub-header">Partido</th>
|
<React.Fragment key={`subheaders-${cat.id}`}>
|
||||||
<th className="sub-header">%</th>
|
<th className="sub-header">Partido</th>
|
||||||
<th className="sub-header category-divider-header">Partido</th>
|
<th className="sub-header">%</th>
|
||||||
<th className="sub-header">%</th>
|
<th className="sub-header category-divider-header">Partido</th>
|
||||||
</React.Fragment>
|
<th className="sub-header">%</th>
|
||||||
))
|
</React.Fragment>
|
||||||
}
|
))
|
||||||
</tr>
|
}
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{rankingData.resultados.map(municipio => (
|
{rankingData.resultados.map(municipio => (
|
||||||
|
|||||||
Reference in New Issue
Block a user