mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
ad6b18e66f
commit
299b81f51b
@ -59,7 +59,7 @@
|
|||||||
search.searchBox("count","");
|
search.searchBox("count","");
|
||||||
} else {
|
} else {
|
||||||
var count = treeList.treeList("filter", function(item) {
|
var count = treeList.treeList("filter", function(item) {
|
||||||
return item.label.toLowerCase().indexOf(val) > -1 || item.node.type.toLowerCase().indexOf(val) > -1
|
return item.label.toLowerCase().indexOf(val) > -1 || (item.node && item.node.type.toLowerCase().indexOf(val) > -1)
|
||||||
});
|
});
|
||||||
search.searchBox("count",count+" / "+candidateNodes.length);
|
search.searchBox("count",count+" / "+candidateNodes.length);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user