Skip to content

Commit

Permalink
fix: fix ReportScreen index
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Andrade <[email protected]>
  • Loading branch information
ArthurTriis1 committed Jan 3, 2024
1 parent 910d5b2 commit ae31368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/components/UploadModal/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ const ReportScreen = (data: FieldValidationError) => {
locators={[errorCount]}
className={csx({ marginTop: '$space-4' })}
/>
{validationResult.map(({ name, invalidRows }, index) => (
{validationResult.map(({ name, invalidRows }) => (
<ReportListItem
key={index}
key={name}
type={invalidRows > 0 ? 'error' : 'success'}
label={name}
locators={[invalidRows]}
Expand Down

0 comments on commit ae31368

Please sign in to comment.