Update bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx

Co-authored-by: Anton Georgiev <antobinary@users.noreply.github.com>
This commit is contained in:
Tainan Felipe 2021-05-07 11:09:30 -03:00 committed by GitHub
parent 5e249ff47f
commit 2efd949b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,7 +255,7 @@ class PresentationUploader extends Component {
const { isOpen, presentations: propPresentations } = this.props;
const { presentations } = this.state;
//Updates presentation list when chat modal opens to avoid missing presentations
if (prevProps.isOpen !== isOpen && isOpen) {
if (isOpen && !prevProps.isOpen) {
this.setState({
presentations: {
...propPresentations,