Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 10, 2024
1 parent e1b7129 commit 491d961
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/manager/dropBox/FileUploadForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ const FileUploadForm = ({ initialUploadFolder, initialUploadFiles, form }) => {
...(initialUploadFolder ? { parent: initialUploadFolder } : {}),
...(initialUploadFiles
? {
files: initialUploadFiles.map((u, i) => ({
// ...u doesn't work for File object
lastModified: u.lastModified,
name: u.name,
size: u.size,
type: u.type,
files: initialUploadFiles.map((u, i) => ({
// ...u doesn't work for File object
lastModified: u.lastModified,
name: u.name,
size: u.size,
type: u.type,

uid: (-1 * (i + 1)).toString(),
originFileObj: u,
})),
}
uid: (-1 * (i + 1)).toString(),
originFileObj: u,
})),
}
: {}),
}),
[initialUploadFolder, initialUploadFiles],
Expand Down

0 comments on commit 491d961

Please sign in to comment.