Skip to content

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

rn,tracks: fix accessing value on undefined object

Saúl Ibarra Corretgéca9ca04d0f9b
diff --git a/react/features/base/tracks/functions.js b/react/features/base/tracks/functions.js
index 63e2b4c2ce..203f943872 100644
--- a/react/features/base/tracks/functions.js
+++ b/react/features/base/tracks/functions.js
@@ -110,7 +110,7 @@ export function createLocalTracksF(
return Promise.resolve();
})
: Promise.resolve();
- const screenshotCapturePromise = state['features/screenshot-capture'].capturesEnabled
+ const screenshotCapturePromise = state['features/screenshot-capture']?.capturesEnabled
? createScreenshotCaptureEffect(state)
.catch(error => {
logger.error('Failed to obtain the screenshot capture effect effect instance with error: ', error);