fix(file-upload): [closes #122] prevent file picker from getting stuck (#131)

This commit is contained in:
Jeremy Kahn 2023-07-25 09:42:53 -05:00 committed by GitHub
parent b425552fe1
commit c4e7e7d13b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ export function RoomFileUploadControls({
const handleFileSelect: ChangeEventHandler<HTMLInputElement> = e => {
const { files } = e.target
if (!files) return
if (!files || files.length < 1) return
handleFileShareStart(files)
}