Skip to content

Commit

Permalink
More lint FindingsList.
Browse files Browse the repository at this point in the history
  • Loading branch information
evanstoner committed Sep 25, 2024
1 parent df35320 commit 91080a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/shared/FindingsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function FindingsList({
<DataList aria-label="Findings">
{findings.map((f) => {
return (
<DataListItem isExpanded={expanded.includes(f[idField])}>
<DataListItem key={f[idField]} isExpanded={expanded.includes(f[idField])}>
<DataListItemRow>
<DataListToggle
onClick={() => toggle(f[idField])}
Expand All @@ -117,7 +117,7 @@ export default function FindingsList({
<DescriptionList isHorizontal isCompact>
{body.map((b) => {
return (
<DescriptionListGroup>
<DescriptionListGroup key={b.field}>
<DescriptionListTerm className={!b.name && 'crwd-finding-field-as-name'}>
{b.name ? b.name : b.field}
</DescriptionListTerm>
Expand Down

0 comments on commit 91080a5

Please sign in to comment.