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:
Anton Georgiev 2020-08-27 09:17:04 -04:00 committed by GitHub
commit 3003897bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}