Skip to content

Commit 9c532ce

Browse files
committed
chore: fix react duplicate key warning on vpcs page
"Warning: Encountered two children with the same key, `name`."
1 parent 1892fc1 commit 9c532ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/pages/project/vpcs/VpcsPage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ export function VpcsPage() {
133133
colHelper.accessor('dnsName', { header: 'DNS name' }),
134134
colHelper.accessor('description', Columns.description),
135135
colHelper.accessor('name', {
136+
// ID needed to avoid key collision with other name column
137+
id: 'rule-count',
136138
header: 'Firewall Rules',
137139
cell: (info) => <FirewallRuleCount project={project} vpc={info.getValue()} />,
138140
}),

0 commit comments

Comments
 (0)