Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ellinge committed Jun 28, 2019
1 parent c3c9c5e commit d242277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree-manager/index.js
Expand Up @@ -278,7 +278,7 @@ class TreeManager {

_getAddOnMatch(matches, searchTerm) {
let isMatch = (node, term) => node.label.toLowerCase().indexOf(term) >= 0
if (this.searchPredicate && typeof this.searchPredicate === 'function') {
if (typeof this.searchPredicate === 'function') {
isMatch = this.searchPredicate
}

Expand Down

0 comments on commit d242277

Please sign in to comment.