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
|
// Itterate over all items to check to which output they should be routed to
|
||||||
itemLoop:
|
itemLoop:
|
||||||
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
||||||
|
@ -636,6 +634,8 @@ export class Switch implements INodeType {
|
||||||
} else if (mode === 'rules') {
|
} else if (mode === 'rules') {
|
||||||
// Rules decide how to route item
|
// Rules decide how to route item
|
||||||
|
|
||||||
|
const dataType = this.getNodeParameter('dataType', 0) as string;
|
||||||
|
|
||||||
value1 = this.getNodeParameter('value1', itemIndex) as NodeParameterValue;
|
value1 = this.getNodeParameter('value1', itemIndex) as NodeParameterValue;
|
||||||
if (dataType === 'dateTime') {
|
if (dataType === 'dateTime') {
|
||||||
value1 = convertDateTime(value1);
|
value1 = convertDateTime(value1);
|
||||||
|
|
Loading…
Reference in a new issue