Skip to content

Commit

Permalink
fix: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
travis committed Dec 14, 2023
1 parent 4acf613 commit 752e18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/Uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const UploaderRoot: Component<UploaderRootProps> = createComponent(
uploadProgress
},
{
setFile: (file?: File) => { setFilesAndReset((file != null) && [file]) },
setFile: (file?: File) => { setFilesAndReset((file === undefined) ? file : [file]) },
setFiles: setFilesAndReset
}
],
Expand Down

0 comments on commit 752e18f

Please sign in to comment.