fix( Switch Node): Disable expressions for Number of Outputs in v3.3 (#19075)

Co-authored-by: Roman Davydchuk <roman.davydchuk@n8n.io>
This commit is contained in:
Shireen Missi
2025-09-12 11:46:09 +02:00
committed by GitHub
parent a13961179f
commit f37e9da13a
3 changed files with 70 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ export class SwitchV3 implements INodeType {
this.description = {
...baseDescription,
subtitle: `=mode: {{(${capitalize})($parameter["mode"])}}`,
version: [3, 3.1, 3.2],
version: [3, 3.1, 3.2, 3.3],
defaults: {
name: 'Switch',
color: '#506000',
@@ -84,9 +84,24 @@ export class SwitchV3 implements INodeType {
displayName: 'Number of Outputs',
name: 'numberOutputs',
type: 'number',
noDataExpression: true,
displayOptions: {
show: {
mode: ['expression'],
'@version': [{ _cnd: { gte: 3.3 } }],
},
},
default: 4,
description: 'How many outputs to create',
},
{
displayName: 'Number of Outputs',
name: 'numberOutputs',
type: 'number',
displayOptions: {
show: {
mode: ['expression'],
'@version': [{ _cnd: { lt: 3.3 } }],
},
},
default: 4,