Skip to content

Commit 5079c8d

Browse files
committed
fix(ui/file-upload): Fix react giving dupe key error when the same error message appears twice
1 parent 3937f90 commit 5079c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/FileUpload/SingleFileUploader.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ export function SingleFileUploadWithProgress({
159159
{(fileWrapper.progress === 100 && task === undefined) || (task && !task.done) || isLoading ? (
160160
<LinearProgress />
161161
) : null}
162-
{errors.map((error) => (
163-
<Typography color="error" key={`${error.code}-${error.message}`}>
162+
{errors.map((error, index) => (
163+
<Typography color="error" key={`${error.code}-${error.message}-${index}`}>
164164
{error.message}
165165
</Typography>
166166
))}

0 commit comments

Comments
 (0)