Skip to content

Commit

Permalink
fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Oct 5, 2024
1 parent 7f18d79 commit 702d103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ export async function sendTusRequest({
fieldname: label,
filename,
},
uploadSize: size,
onError: reject,
onProgress: onTusProgress,
onSuccess: resolve,
}
// tus-js-client doesn't like undefined/null
if (size != null) tusOptions.uploadSize = size
if (chunkSize) tusOptions.chunkSize = chunkSize
if (uploadLengthDeferred) tusOptions.uploadLengthDeferred = uploadLengthDeferred

Expand Down

0 comments on commit 702d103

Please sign in to comment.