Explorar el Código

rn,tracks: fix accessing value on undefined object

master
Saúl Ibarra Corretgé hace 5 años
padre
commit
ca9ca04d0f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      react/features/base/tracks/functions.js

+ 1
- 1
react/features/base/tracks/functions.js Ver fichero

@@ -110,7 +110,7 @@ export function createLocalTracksF(
110 110
                 return Promise.resolve();
111 111
             })
112 112
         : Promise.resolve();
113
-    const screenshotCapturePromise = state['features/screenshot-capture'].capturesEnabled
113
+    const screenshotCapturePromise = state['features/screenshot-capture']?.capturesEnabled
114 114
         ? createScreenshotCaptureEffect(state)
115 115
             .catch(error => {
116 116
                 logger.error('Failed to obtain the screenshot capture effect effect instance with error: ', error);

Loading…
Cancelar
Guardar