fix: console warning after upload details

Massimo Melina committed Jun 1, 2024 at 12:03 UTC 192c4b32d54b948cb02289db8da642f73ea51d86
1 file changed +3 -3
frontend/src/upload.ts
+3 -3
@@ -437,9 +437,9 @@ function UploadStatus({ snapshot, ...props }: { snapshot?: INTERNAL_Snapshot<typ
437 [msgDone, done],
438 [msgSkipped, skipped],
439 [msgErrors, errors]
440 - ] as const).map(([msg, list]) =>
441 - msg && h('div', {}, msg, h('ul', {},
442 - list.map(x => h('li', {}, x.name || x.file.name)) )))
440 + ] as const).map(([msg, list], i) =>
441 + msg && h('div', { key: i }, msg, h('ul', {},
442 + list.map((x, i) => h('li', { key: i }, x.name || x.file.name)) )))
443 ))
444 }
445 }