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 TypeError when one of audioTracks or videoTracks was undefined

tsaregf72e3bf55213
diff --git a/conference.js b/conference.js
index 14cfe1c350..82537e97cc 100644
--- a/conference.js
+++ b/conference.js
@@ -594,7 +594,8 @@ export default {
videoTrackCreationError);
}
- return audioTracks.concat(videoTracks);
+ return (audioTracks || [])
+ .concat(videoTracks || []);
});
} else {
promise = createAudioTrack();