diff --git a/js/src/common/components/SelectDropdown.js b/js/src/common/components/SelectDropdown.js index c0068d305..1f324a798 100644 --- a/js/src/common/components/SelectDropdown.js +++ b/js/src/common/components/SelectDropdown.js @@ -39,7 +39,7 @@ export default class SelectDropdown extends Dropdown { } getButtonContent(children) { - const activeChild = children.filter(isActive)[0]; + const activeChild = children.find(isActive); let label = (activeChild && activeChild.children) || this.attrs.defaultLabel; if (label instanceof Array) label = label[0];