From 5da45e9d360d7d508380f7ee8f1b45bf5e785eea Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Mon, 19 Jan 2026 12:39:41 -0800 Subject: [PATCH] fix(linear): team selector in tool input --- .../components/sub-block/components/tool-input/tool-input.tsx | 1 + apps/sim/hooks/selectors/resolution.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx index 6a95cf1ef1..a064b74864 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx @@ -2069,6 +2069,7 @@ export const ToolInput = memo(function ToolInput({ placeholder: uiComponent.placeholder, requiredScopes: uiComponent.requiredScopes, dependsOn: uiComponent.dependsOn, + canonicalParamId: uiComponent.canonicalParamId ?? param.id, }} onProjectSelect={onChange} disabled={disabled} diff --git a/apps/sim/hooks/selectors/resolution.ts b/apps/sim/hooks/selectors/resolution.ts index 54837537cf..d90df1c21a 100644 --- a/apps/sim/hooks/selectors/resolution.ts +++ b/apps/sim/hooks/selectors/resolution.ts @@ -203,10 +203,11 @@ function resolveProjectSelector( ): SelectorResolution { const serviceId = subBlock.serviceId const context = buildBaseContext(args) + const selectorId = subBlock.canonicalParamId ?? subBlock.id switch (serviceId) { case 'linear': { - const key: SelectorKey = subBlock.id === 'teamId' ? 'linear.teams' : 'linear.projects' + const key: SelectorKey = selectorId === 'teamId' ? 'linear.teams' : 'linear.projects' return { key, context, allowSearch: true } } case 'jira':