mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Opt-out from optimizations if $item is used (#12036)
This commit is contained in:
@@ -125,6 +125,11 @@ export class BuiltInsParser {
|
||||
private visitIdentifier = (node: Identifier, state: BuiltInsParserState) => {
|
||||
if (node.name === '$env') {
|
||||
state.markEnvAsNeeded();
|
||||
} else if (node.name === '$item') {
|
||||
// $item is legacy syntax that is basically an alias for WorkflowDataProxy
|
||||
// and allows accessing any data. We need to support it for backwards
|
||||
// compatibility, but we're not gonna implement any optimizations
|
||||
state.markNeedsAllNodes();
|
||||
} else if (
|
||||
node.name === '$input' ||
|
||||
node.name === '$json' ||
|
||||
|
||||
Reference in New Issue
Block a user