Skip to content

Commit 04d1f03

Browse files
waleedlatif1claude
andcommitted
fix(selectors): use || for consistent empty-string env var handling
Align use-selector-setup.ts with use-selector-query.ts by using || instead of ?? so empty-string env var values are treated as unset. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7897e5e commit 04d1f03

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/hooks

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/hooks/use-selector-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function useSelectorSetup(
4949
const str = String(value)
5050
if (isEnvVarReference(str)) {
5151
const varName = extractEnvVarName(str)
52-
resolved[key] = envVariables[varName]?.value ?? undefined
52+
resolved[key] = envVariables[varName]?.value || undefined
5353
} else {
5454
resolved[key] = value
5555
}

0 commit comments

Comments
 (0)