rn,tracks: fix accessing value on undefined object

This commit is contained in:
Saúl Ibarra Corretgé 2020-01-24 16:10:04 +01:00 committed by Saúl Ibarra Corretgé
parent 5a027f1585
commit ca9ca04d0f
1 changed files with 1 additions and 1 deletions

View File

@ -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);