Merge pull request #10336 from prlanzarin/upstream-2.2-vpeg-pagination
video-provider: add missing PropType, remove render socketOpen check
This commit is contained in:
commit
3003897bfe
@ -83,6 +83,7 @@ const propTypes = {
|
||||
isUserLocked: PropTypes.bool.isRequired,
|
||||
swapLayout: PropTypes.bool.isRequired,
|
||||
currentVideoPageIndex: PropTypes.number.isRequired,
|
||||
totalNumberOfStreams: PropTypes.number.isRequired,
|
||||
};
|
||||
|
||||
class VideoProvider extends Component {
|
||||
@ -880,13 +881,8 @@ class VideoProvider extends Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { swapLayout, currentVideoPageIndex } = this.props;
|
||||
const { socketOpen } = this.state;
|
||||
if (!socketOpen) return null;
|
||||
const { swapLayout, currentVideoPageIndex, streams } = this.props;
|
||||
|
||||
const {
|
||||
streams,
|
||||
} = this.props;
|
||||
return (
|
||||
<VideoListContainer
|
||||
streams={streams}
|
||||
|
Loading…
Reference in New Issue
Block a user