Merge pull request #5427 from node-red/5405-quick-add-filter-fix

Ensure quick-add filter is applied properly when retriggering add
pull/5428/head
Nick O'Leary 2026-01-07 15:57:25 +00:00 committed by GitHub
commit cfe809e76a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -1378,6 +1378,13 @@ RED.view = (function() {
quickAddLink.virtualLink = true;
}
hideDragLines();
} else if (quickAddLink) {
// continuing an existing quick add - set the filter accordingly
if (quickAddLink.portType === PORT_TYPE_OUTPUT) {
filter = {input:true}
} else {
filter = {output:true}
}
}
if (linkToSplice || spliceMultipleLinks) {
filter = {