Skip to content

Commit

Permalink
feat: set file names before compact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Jun 6, 2022
1 parent 3f31ace commit bce64ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/file_upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ export const
}
else {
setFiles(fileArr)
setFileNames(fileArr.map(({ name }) => name).join(', '))
if (compact) {
await upload(fileArr)
setPercentComplete(0)
}
setFileNames(fileArr.map(({ name }) => name).join(', '))
}
},
onIsDragging = (e: React.DragEvent<HTMLFormElement>) => {
Expand Down

0 comments on commit bce64ca

Please sign in to comment.