Skip to content

Commit

Permalink
Fixing includes to return true when object exists in array
Browse files Browse the repository at this point in the history
  • Loading branch information
miukimiu committed Jul 8, 2020
1 parent 35bf576 commit 4a0d20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/combo_box/combo_box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ export class EuiComboBox<T> extends Component<
Boolean(singleSelection) &&
onCreateOption &&
selectedOptions.length > 0 &&
!options.includes(selectedOptions[0])
!JSON.stringify(options).includes(JSON.stringify(selectedOptions[0]))
);
};

Expand Down

0 comments on commit 4a0d20e

Please sign in to comment.