fix: File upload error after using rx.clear_selected_files (#2666)

This commit is contained in:
abulvenz 2024-02-19 18:42:11 +00:00 committed by GitHub
parent 899e35edba
commit 052f82cd06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -346,7 +346,7 @@ export const connect = async (
*/
export const uploadFiles = async (handler, files, upload_id, on_upload_progress, socket) => {
// return if there's no file to upload
if (files.length == 0) {
if (files === undefined || files.length === 0) {
return false;
}