Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rendering errors (missing key and h3 child of TableHeader) #94

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading