Skip to content

Commit 94e96fa

Browse files
authored
chore: enable react/no-array-index-key eslint (#3696)
* chore: enable react/no-array-index-key eslint * fix: add missing key to ResourcesTable
1 parent 8a44683 commit 94e96fa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

site/.eslintrc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ rules:
115115
- error
116116
- children: ignore
117117
# https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
118+
react/jsx-key: error
118119
react/jsx-uses-react: "off"
119120
react/react-in-jsx-scope: "off"
120121
settings:

site/src/components/TemplateResourcesTable/TemplateResourcesTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const TemplateResourcesTable: FC<React.PropsWithChildren<TemplateResource
5555
// If there is no agent, just display the resource name
5656
if (!agent) {
5757
return (
58-
<TableRow>
58+
<TableRow key={resource.id}>
5959
<TableCell className={styles.resourceNameCell}>
6060
<AvatarData
6161
title={resource.name}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy