mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Fix issue with Expression-Mode on Switch-Node #1843
This commit is contained in:
parent
4d86384d9d
commit
1ec916e530
|
@ -618,8 +618,6 @@ export class Switch implements INodeType {
|
|||
}
|
||||
};
|
||||
|
||||
const dataType = this.getNodeParameter('dataType', 0) as string;
|
||||
|
||||
// Itterate over all items to check to which output they should be routed to
|
||||
itemLoop:
|
||||
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
||||
|
@ -636,6 +634,8 @@ export class Switch implements INodeType {
|
|||
} else if (mode === 'rules') {
|
||||
// Rules decide how to route item
|
||||
|
||||
const dataType = this.getNodeParameter('dataType', 0) as string;
|
||||
|
||||
value1 = this.getNodeParameter('value1', itemIndex) as NodeParameterValue;
|
||||
if (dataType === 'dateTime') {
|
||||
value1 = convertDateTime(value1);
|
||||
|
|
Loading…
Reference in a new issue