Skip to content

Commit

Permalink
small update from personal review
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Feb 20, 2020
1 parent ceaf478 commit f398cfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/combo_box/combo_box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class EuiComboBox<T> extends Component<
return;
}

if (!listElement || !listElement) {
if (!listElement) {
return;
}

Expand Down Expand Up @@ -489,7 +489,7 @@ export class EuiComboBox<T> extends Component<
const singleSelection = Boolean(singleSelectionProp);
const changeOptions = singleSelection
? [addedOption]
: [...selectedOptions, addedOption];
: selectedOptions.concat(addedOption);

if (onChange) {
onChange(changeOptions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export class EuiComboBoxOptionsList<T> extends Component<
</p>
);
}
} else if (!options || options.length === 0) {
} else if (!options.length) {
emptyStateContent = (
<p>
<EuiI18n
Expand Down

0 comments on commit f398cfa

Please sign in to comment.