fix: remove async from Promise.all

This commit is contained in:
Phan An 2023-04-17 00:00:27 +02:00
parent f64b49d50a
commit 859a2def47

View file

@ -40,7 +40,7 @@ export const useUpload = () => {
}
const fileEntries = await getAllFileEntries(event.dataTransfer.items)
const files = await Promise.all(fileEntries.map(async entry => await fileEntryToFile(entry)))
const files = await Promise.all(fileEntries.map(entry => fileEntryToFile(entry)))
const queuedFiles = queueFilesForUpload(files)
if (queuedFiles.length) {