From ca9ca04d0f9bff191ccb6fe525e0efc3378b7f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 24 Jan 2020 16:10:04 +0100 Subject: [PATCH] rn,tracks: fix accessing value on undefined object --- react/features/base/tracks/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/base/tracks/functions.js b/react/features/base/tracks/functions.js index 63e2b4c2c..203f94387 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);