Merge pull request #4423 from node-red/4415-handle-excluded-core-nodes

Ensure typeSearch handles undefined node definitions
This commit is contained in:
Nick O'Leary 2023-11-07 17:39:46 +00:00 committed by GitHub
commit 6488111f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,7 +323,7 @@ RED.typeSearch = (function() {
} }
} }
function applyFilter(filter,type,def) { function applyFilter(filter,type,def) {
return !filter || return !def || !filter ||
( (
(!filter.spliceMultiple) && (!filter.spliceMultiple) &&
(!filter.type || type === filter.type) && (!filter.type || type === filter.type) &&