From d24227727ac9b18de694683cd948449c90456ae1 Mon Sep 17 00:00:00 2001 From: ellinge Date: Fri, 28 Jun 2019 06:38:04 +0200 Subject: [PATCH] Update index.js --- src/tree-manager/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree-manager/index.js b/src/tree-manager/index.js index ce7c2002..77e2ed4f 100644 --- a/src/tree-manager/index.js +++ b/src/tree-manager/index.js @@ -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 }