Add comment
This commit is contained in:
parent
2e168b8252
commit
5e249ff47f
@ -254,7 +254,7 @@ class PresentationUploader extends Component {
|
||||
componentDidUpdate(prevProps) {
|
||||
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) {
|
||||
this.setState({
|
||||
presentations: {
|
||||
@ -280,7 +280,7 @@ class PresentationUploader extends Component {
|
||||
}
|
||||
|
||||
if (presentations.length > 0) {
|
||||
const selected = propPresentations.filter(p => p.isCurrent);
|
||||
const selected = propPresentations.filter((p) => p.isCurrent);
|
||||
if (selected.length > 0) Session.set('selectedToBeNextCurrent', selected[0].id);
|
||||
}
|
||||
|
||||
@ -655,7 +655,7 @@ class PresentationUploader extends Component {
|
||||
let converted = 0;
|
||||
|
||||
let presentationsSorted = presentations
|
||||
.filter(p => (p.upload.progress || p.conversion.status) && p.file)
|
||||
.filter((p) => (p.upload.progress || p.conversion.status) && p.file)
|
||||
.sort((a, b) => a.uploadTimestamp - b.uploadTimestamp)
|
||||
.sort((a, b) => a.conversion.done - b.conversion.done);
|
||||
|
||||
@ -987,8 +987,7 @@ class PresentationUploader extends Component {
|
||||
disabled={disableActions}
|
||||
label={hasNewUpload
|
||||
? intl.formatMessage(intlMessages.uploadLabel)
|
||||
: intl.formatMessage(intlMessages.confirmLabel)
|
||||
}
|
||||
: intl.formatMessage(intlMessages.confirmLabel)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user