1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix Link node filter

Fixes #2600
This commit is contained in:
Nick O'Leary 2020-06-05 16:20:40 +01:00
parent ad6b18e66f
commit 299b81f51b
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -59,7 +59,7 @@
search.searchBox("count","");
} else {
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);
}