mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Only render popup receiver list once populated
This commit is contained in:
@@ -117,14 +117,12 @@ class PopupApp extends Component<{}, PopupAppState> {
|
|||||||
{ _("popupMediaSelectToLabel") }
|
{ _("popupMediaSelectToLabel") }
|
||||||
</div>
|
</div>
|
||||||
<ul className="receivers">
|
<ul className="receivers">
|
||||||
{ this.state.receivers.map((receiver, i) => {
|
{ this.state.receivers && this.state.receivers.map(
|
||||||
return (
|
(receiver, i) => (
|
||||||
<ReceiverEntry receiver={ receiver }
|
<ReceiverEntry receiver={ receiver }
|
||||||
onCast={ this.onCast }
|
onCast={ this.onCast }
|
||||||
isLoading={ this.state.isLoading }
|
isLoading={ this.state.isLoading }
|
||||||
key={ i }/>
|
key={ i }/> )}
|
||||||
);
|
|
||||||
})}
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user