From 752e18f8542ed752310756c4361f7daf5a776c63 Mon Sep 17 00:00:00 2001 From: Travis Vachon Date: Thu, 14 Dec 2023 11:12:07 -0800 Subject: [PATCH] fix: fix type error --- packages/react/src/Uploader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/Uploader.tsx b/packages/react/src/Uploader.tsx index d8e99487..4b0f2427 100644 --- a/packages/react/src/Uploader.tsx +++ b/packages/react/src/Uploader.tsx @@ -182,7 +182,7 @@ export const UploaderRoot: Component = createComponent( uploadProgress }, { - setFile: (file?: File) => { setFilesAndReset((file != null) && [file]) }, + setFile: (file?: File) => { setFilesAndReset((file === undefined) ? file : [file]) }, setFiles: setFilesAndReset } ],