mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Resolve $vars and $secrets in expressions in credentials fields (#9289)
This commit is contained in:
@@ -202,14 +202,18 @@ export default defineComponent({
|
||||
? this.modelValue.value
|
||||
: this.modelValue;
|
||||
|
||||
if (!this.activeNode || !this.isValueExpression || typeof value !== 'string') {
|
||||
if (
|
||||
!this.isForCredential &&
|
||||
(!this.activeNode || !this.isValueExpression || typeof value !== 'string')
|
||||
) {
|
||||
return { ok: false, error: new Error() };
|
||||
}
|
||||
|
||||
try {
|
||||
let opts;
|
||||
let opts = { isForCredential: this.isForCredential };
|
||||
if (this.ndvStore.isInputParentOfActiveNode) {
|
||||
opts = {
|
||||
...opts,
|
||||
targetItem: this.targetItem ?? undefined,
|
||||
inputNodeName: this.ndvStore.ndvInputNodeName,
|
||||
inputRunIndex: this.ndvStore.ndvInputRunIndex,
|
||||
|
||||
Reference in New Issue
Block a user