Skip to content

Commit

Permalink
Merge pull request #31 from 0xfe0/master
Browse files Browse the repository at this point in the history
Update update-record-factory.ts  -> Fixes #30 and #28
  • Loading branch information
dziraf authored Jul 21, 2021
2 parents f856742 + 65f091b commit 9084cf4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const updateRecordFactory = (

await record.update(newParams)
}
if (multiple && files) {
if (multiple && files && files.length) {
const uploadedFiles = files as Array<UploadedFile>

const keys = await Promise.all<string>(uploadedFiles.map(async (uploadedFile) => {
Expand Down

0 comments on commit 9084cf4

Please sign in to comment.