only show top divider with 2 or more presentations

This commit is contained in:
KDSBrowne 2021-08-09 22:39:04 +00:00
parent 773800cdc5
commit 6e1c000381

View File

@ -147,7 +147,7 @@ class ActionsDropdown extends PureComponent {
// description: formatMessage(presentationDesc),
key: this.presentationItemId,
onClick: handlePresentationClick,
dividerTop: true,
dividerTop: this.props?.presentations?.length > 1 ? true : false,
})
}
@ -260,7 +260,7 @@ class ActionsDropdown extends PureComponent {
const availableActions = this.getAvailableActions();
const availablePresentations = this.makePresentationItems();
const children = availablePresentations.length > 2 && amIPresenter
const children = availablePresentations.length > 1 && amIPresenter
? availablePresentations.concat(availableActions) : availableActions;
if ((!amIPresenter && !amIModerator)