Skip to content

Conversation

@r-vasquez
Copy link
Contributor

In 0fc7832#diff-92ae9a9521b7b474ece84f42374e19b87b24019769ef6603b63ba604f5bc4677 we fixed several issues across the codebase to satisfy the linter/formatter. One of those changes was:

/state/connect/state.ts

-      if (this.appliedConfig == null) {
+      if (this.appliedConfig === null) {

However, appliedConfig can never actually be null, since it is typed as Record<string, unknown> | undefined.

Previously, the loose abstract equality check made this a non-issue because undefined == null evaluates to true. After switching to strict equality, undefined === null is always false, which meant we were skipping the loop where the default configuration values were overridden.

@r-vasquez r-vasquez changed the title frontend: fix loose checking for connector default override [UX-848] frontend: fix loose checking for connector default override Jan 29, 2026
In 0fc7832 we changed:

-  if (this.appliedConfig == null)
+  if (this.appliedConfig === null)

But appliedConfig is typed as
Record<string, unknown> | undefined, never null.

The loose equality (undefined == null) was true,
so the custom_default_value loop ran correctly.

The strict equality (undefined === null) is false,
so the loop was skipped for new connectors.
@r-vasquez r-vasquez merged commit 4a13961 into master Jan 29, 2026
13 checks passed
@r-vasquez r-vasquez deleted the UX-848 branch January 29, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants