[common] For Bug 53745

This commit is contained in:
SergeyEzhin 2021-11-16 18:05:53 +04:00
parent e401cbc79e
commit b0ec722fd0

View file

@ -26,7 +26,7 @@ class ContextMenuView extends Component {
onPopoverClosed={e => this.props.onMenuClosed()}
>
<List className="list-block">
{buttons.map((b, index) =>
{buttons.length && buttons.map((b, index) =>
!b.icon ?
<ListButton title={b.caption} key={index} onClick={e => this.props.onMenuItemClick(b.event)} /> :
<ListButton key={index} onClick={e => this.props.onMenuItemClick(b.event)}>