fix(editor): Resolve $vars and $secrets in expressions in credentials fields (#9289)

This commit is contained in:
Iván Ovejero
2024-05-03 14:39:31 +02:00
committed by GitHub
parent 6ab3781570
commit d92f994913
4 changed files with 55 additions and 22 deletions

View File

@@ -164,7 +164,9 @@ export class WorkflowDataProxy {
const that = this;
const node = this.workflow.nodes[nodeName];
return new Proxy(node.parameters, {
// `node` is `undefined` only in expressions in credentials
return new Proxy(node?.parameters ?? {}, {
has: () => true,
ownKeys(target) {
return Reflect.ownKeys(target);