Skip to content

Commit 26865a7

Browse files
fix(ui): fix child unique \"key\" prop warning (#356)
ISSUES CLOSED: #355
1 parent 2907aa3 commit 26865a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/aurora-portal/src/client/routes/gardener/-components/ClusterDetail

apps/aurora-portal/src/client/routes/gardener/-components/ClusterDetail/WorkerSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const WorkerSection: React.FC<WorkerSectionProps> = ({ workers }) => {
5050
) : (
5151
workers.map((worker) => {
5252
return (
53-
<DataGridRow>
53+
<DataGridRow key={`${worker.name}-${worker.machineType}-${worker.architecture}`}>
5454
<DataGridCell>
5555
<Stack direction="vertical" gap="1">
5656
<span>{worker.name}</span>
@@ -83,7 +83,7 @@ const WorkerSection: React.FC<WorkerSectionProps> = ({ workers }) => {
8383
<DataGridCell>
8484
<Stack gap="1.5" wrap={true}>
8585
{worker.zones.map((zone) => (
86-
<Badge variant="info" text={zone}></Badge>
86+
<Badge variant="info" text={zone} key={`${worker.name}-${zone}`}></Badge>
8787
))}
8888
</Stack>
8989
</DataGridCell>

0 commit comments

Comments
 (0)