mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(Switch Node): Overhaul (#7855)
Github issue / Community forum post (link here to close automatically): https://community.n8n.io/t/switch-node-to-more-than-one-path/32791/2 https://community.n8n.io/t/switch-node-routing-same-value-multiple-output/29424 --------- Co-authored-by: Elias Meire <elias@meire.dev> Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
@@ -644,6 +644,8 @@ export class SwitchV2 implements INodeType {
|
||||
const rules = this.getNodeParameter('rules.rules', itemIndex, []) as INodeParameters[];
|
||||
mode = this.getNodeParameter('mode', itemIndex) as string;
|
||||
|
||||
item.pairedItem = { item: itemIndex };
|
||||
|
||||
if (mode === 'expression') {
|
||||
const outputsAmount = this.getNodeParameter('outputsAmount', itemIndex) as number;
|
||||
if (itemIndex === 0) {
|
||||
|
||||
Reference in New Issue
Block a user