Skip to content

fix(editor): Resolve credential modal expressions without workflow co…#26191

Merged
sandra0503 merged 1 commit intomasterfrom
ligo-241-fe-bug-bash-secrets-that-are-resolved-show-as-red
Feb 25, 2026
Merged

fix(editor): Resolve credential modal expressions without workflow co…#26191
sandra0503 merged 1 commit intomasterfrom
ligo-241-fe-bug-bash-secrets-that-are-resolved-show-as-red

Conversation

@sandra0503
Copy link
Contributor

@sandra0503 sandra0503 commented Feb 24, 2026

…ntext

Summary

When the credentials modal is opened from the NDV (which sets an active node), expressions like $secrets were incorrectly resolved using the workflow context instead of resolveWithoutWorkflow. This happened because the condition only checked for the absence of an active node, which is never true when the modal is opened from the NDV.

Add an explicit isCredentialsModalOpen() check so credential expressions always use resolveWithoutWorkflow, regardless of whether an active node exists.

Screenshot 2026-02-24 at 14 38 23

Related Linear tickets, Github issues, and Community forum posts

Fixes LIGO-241

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

…ntext

When the credentials modal is opened from the NDV (which sets an active
node), expressions like $secrets were incorrectly resolved using the
workflow context instead of resolveWithoutWorkflow. This happened because
the condition only checked for the absence of an active node, which is
never true when the modal is opened from the NDV.

Add an explicit isCredentialsModalOpen() check so credential expressions
always use resolveWithoutWorkflow, regardless of whether an active node
exists.
@codecov
Copy link

codecov bot commented Feb 24, 2026

Bundle Report

Changes will increase total bundle size by 88 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
editor-ui-esm 42.4MB 88 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: editor-ui-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/ParameterInputList-*.js 58 bytes 1.47MB 0.0%
assets/RunData-*.js 30 bytes 1.06MB 0.0%

Files in assets/ParameterInputList-*.js:

  • ./src/features/shared/editors/composables/useExpressionEditor.ts → Total Size: 12.44kB

@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../shared/editors/composables/useExpressionEditor.ts 80.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Feb 24, 2026
} else if (!ndvStore.activeNode && toValue(targetNodeParameterContext) === undefined) {
} else if (
isCredentialsModalOpen() ||
(!ndvStore.activeNode && toValue(targetNodeParameterContext) === undefined)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the second condition here describes the case of isNodeDetailsViewOpen?

@sandra0503 sandra0503 added this pull request to the merge queue Feb 25, 2026
Merged via the queue into master with commit e0ef26b Feb 25, 2026
51 checks passed
@sandra0503 sandra0503 deleted the ligo-241-fe-bug-bash-secrets-that-are-resolved-show-as-red branch February 25, 2026 08:42
@n8n-assistant n8n-assistant bot mentioned this pull request Mar 2, 2026
This was referenced Mar 3, 2026
@n8n-assistant
Copy link
Contributor

n8n-assistant bot commented Mar 3, 2026

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

n8n team Authored by the n8n team Released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants