Guard against empty arrays of dropdown actions

pull/10616/head
Alex P 2017-10-25 18:30:35 -07:00
parent 01b88e23f5
commit 6fcef2ee37
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class Dropdown extends Component {
>
{item.text}
</a>
{actions
{actions && actions.length
? <div className="dropdown-actions">
{actions.map(action => {
return (