diff --git a/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx b/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx index cf9369f3185a0b1ea003d060d182fd1315e8a98c..62d3db60b7c3bfe9df08e02416db370a845e2060 100755 --- a/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx @@ -196,7 +196,8 @@ class PresentationUploader extends Component { } static getDerivedStateFromProps(props, state) { - if (props.presentations[0].isCurrent && state.disableConfirm) { + const firstPres = props.presentations[0]; + if (firstPres && firstPres.isCurrent && state.disableConfirm) { return { disableConfirm: !state.disableConfirm, };