Skip to content

Commit

Permalink
Fix legends broken after using Number items
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisirhc authored Sep 28, 2016
1 parent 6357308 commit 2a152d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/legends/searchable-discrete-color-legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const propTypes = {
const defaultProps = {
searchText: '',
searchFn: (items, s) => items.filter(
item => (item.title || item).toLowerCase().indexOf(s) !== -1
item => String(item.title || item).toLowerCase().indexOf(s) !== -1
)
};

Expand Down

0 comments on commit 2a152d3

Please sign in to comment.