mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Relocate workflow ID expression notice (no-changelog) (#12942)
This commit is contained in:
committed by
GitHub
parent
1ca6a9799a
commit
066908060f
@@ -164,8 +164,9 @@ export class WorkflowDataProxy {
|
||||
*
|
||||
* @private
|
||||
* @param {string} nodeName The name of the node to query data from
|
||||
* @param {boolean} [resolveValue=true] If the expression value should get resolved
|
||||
*/
|
||||
private nodeParameterGetter(nodeName: string) {
|
||||
private nodeParameterGetter(nodeName: string, resolveValue = true) {
|
||||
const that = this;
|
||||
const node = this.workflow.nodes[nodeName];
|
||||
|
||||
@@ -223,7 +224,7 @@ export class WorkflowDataProxy {
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof returnValue === 'string' && returnValue.charAt(0) === '=') {
|
||||
if (resolveValue && typeof returnValue === 'string' && returnValue.charAt(0) === '=') {
|
||||
// The found value is an expression so resolve it
|
||||
return that.workflow.expression.getParameterValue(
|
||||
returnValue,
|
||||
@@ -1359,6 +1360,7 @@ export class WorkflowDataProxy {
|
||||
$node: this.nodeGetter(),
|
||||
$self: this.selfGetter(),
|
||||
$parameter: this.nodeParameterGetter(this.activeNodeName),
|
||||
$rawParameter: this.nodeParameterGetter(this.activeNodeName, false),
|
||||
$prevNode: this.prevNodeGetter(),
|
||||
$runIndex: this.runIndex,
|
||||
$mode: this.mode,
|
||||
|
||||
Reference in New Issue
Block a user