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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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