fix: File upload error after using rx.clear_selected_files (#2666)
This commit is contained in:
parent
899e35edba
commit
052f82cd06
@ -346,7 +346,7 @@ export const connect = async (
|
|||||||
*/
|
*/
|
||||||
export const uploadFiles = async (handler, files, upload_id, on_upload_progress, socket) => {
|
export const uploadFiles = async (handler, files, upload_id, on_upload_progress, socket) => {
|
||||||
// return if there's no file to upload
|
// return if there's no file to upload
|
||||||
if (files.length == 0) {
|
if (files === undefined || files.length === 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user