Skip to content

Commit

Permalink
fix: rendering errors (missing key and h3 child of TableHeader)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Henning authored and andy89923 committed May 9, 2024
1 parent 01623fb commit 6c0002a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions frontend/src/pages/Charging/ChargingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ const ChargingList: React.FC<{
return (
<Table>
<TableHead>
<h3>{props.chargingMethod} Charging</h3>
<TableRow>
<TableCell colSpan={tableColumnNames.length}>
<h3>{props.chargingMethod} Charging</h3>
</TableCell>
</TableRow>
<TableRow>
{tableColumnNames.map((colName, idx) => {
return <TableCell key={idx}>{colName}</TableCell>;
Expand All @@ -91,8 +95,8 @@ const ChargingList: React.FC<{
.filter((a) => a!.filter === "" && a!.dnn === "")
.map((cd, idx) => {
return (
<>
<TableRow key={idx}>
<React.Fragment key={idx}>
<TableRow>
<TableCell>{cd.ueId}</TableCell>
<TableCell>{cd.snssai}</TableCell>
<TableCell>{cd.dnn}</TableCell>
Expand All @@ -105,7 +109,7 @@ const ChargingList: React.FC<{
/>
</TableRow>
{<PerFlowTableView Supi={cd.ueId!} Snssai={cd.snssai!} />}
</>
</React.Fragment>
);
})}
</TableBody>
Expand Down

0 comments on commit 6c0002a

Please sign in to comment.