Ensure typeSearch handles undefined node definitions

Fixes #4415
This commit is contained in:
Nick O'Leary
2023-11-03 11:28:04 +01:00
parent 6ac905f264
commit ad2b30691f

View File

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