Fix white screen when sharing screen

This commit is contained in:
Fedor Indutny
2022-04-07 10:52:04 -07:00
committed by GitHub
parent b50c96c0b5
commit 085a698a73

View File

@@ -97,7 +97,7 @@ export const CallingSelectPresentingSourcesModal = ({
{i18n('calling__SelectPresentingSourcesModal--entireScreen')} {i18n('calling__SelectPresentingSourcesModal--entireScreen')}
</div> </div>
<div className="module-CallingSelectPresentingSourcesModal__sources"> <div className="module-CallingSelectPresentingSourcesModal__sources">
{sources.true.map(source => ( {(sources.true ?? []).map(source => (
<Source <Source
key={source.id} key={source.id}
onSourceClick={selectedSource => setSourceToPresent(selectedSource)} onSourceClick={selectedSource => setSourceToPresent(selectedSource)}
@@ -110,7 +110,7 @@ export const CallingSelectPresentingSourcesModal = ({
{i18n('calling__SelectPresentingSourcesModal--window')} {i18n('calling__SelectPresentingSourcesModal--window')}
</div> </div>
<div className="module-CallingSelectPresentingSourcesModal__sources"> <div className="module-CallingSelectPresentingSourcesModal__sources">
{sources.false.map(source => ( {(sources.false ?? []).map(source => (
<Source <Source
key={source.id} key={source.id}
onSourceClick={selectedSource => setSourceToPresent(selectedSource)} onSourceClick={selectedSource => setSourceToPresent(selectedSource)}