Skip to content

Commit

Permalink
chore: fix react duplicate key warning on vpcs page
Browse files Browse the repository at this point in the history
"Warning: Encountered two children with the same key, `name`."
  • Loading branch information
david-crespo committed Sep 10, 2024
1 parent 1892fc1 commit 9c532ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/pages/project/vpcs/VpcsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ export function VpcsPage() {
colHelper.accessor('dnsName', { header: 'DNS name' }),
colHelper.accessor('description', Columns.description),
colHelper.accessor('name', {
// ID needed to avoid key collision with other name column
id: 'rule-count',
header: 'Firewall Rules',
cell: (info) => <FirewallRuleCount project={project} vpc={info.getValue()} />,
}),
Expand Down

0 comments on commit 9c532ce

Please sign in to comment.