Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(virtual-backgrounds) fix handling empty file list

Saúl Ibarra Corretgé6d0271338ee7
diff --git a/react/features/virtual-background/components/UploadImageButton.tsx b/react/features/virtual-background/components/UploadImageButton.tsx
index ceffe02873..2ea96ffbb3 100644
--- a/react/features/virtual-background/components/UploadImageButton.tsx
+++ b/react/features/virtual-background/components/UploadImageButton.tsx
@@ -91,7 +91,7 @@ function UploadImageButton({
const uploadImage = useCallback(async e => {
const imageFile = e.target.files;
- if (!imageFile) {
+ if (imageFile.length === 0) {
return;
}