rn,tracks: fix accessing value on undefined object

pull/5009/head jitsi-meet_4189
Saúl Ibarra Corretgé 5 years ago committed by Saúl Ibarra Corretgé
parent 5a027f1585
commit ca9ca04d0f
  1. 2
      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);

Loading…
Cancel
Save