Skip to content

Commit 72c2ba7

Browse files
fix(linear): team selector in tool input (#2886)
1 parent 037dad6 commit 72c2ba7

File tree

2 files changed

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

2 files changed

+3
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,6 +2069,7 @@ export const ToolInput = memo(function ToolInput({
20692069
placeholder: uiComponent.placeholder,
20702070
requiredScopes: uiComponent.requiredScopes,
20712071
dependsOn: uiComponent.dependsOn,
2072+
canonicalParamId: uiComponent.canonicalParamId ?? param.id,
20722073
}}
20732074
onProjectSelect={onChange}
20742075
disabled={disabled}

apps/sim/hooks/selectors/resolution.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,11 @@ function resolveProjectSelector(
203203
): SelectorResolution {
204204
const serviceId = subBlock.serviceId
205205
const context = buildBaseContext(args)
206+
const selectorId = subBlock.canonicalParamId ?? subBlock.id
206207

207208
switch (serviceId) {
208209
case 'linear': {
209-
const key: SelectorKey = subBlock.id === 'teamId' ? 'linear.teams' : 'linear.projects'
210+
const key: SelectorKey = selectorId === 'teamId' ? 'linear.teams' : 'linear.projects'
210211
return { key, context, allowSearch: true }
211212
}
212213
case 'jira':

0 commit comments

Comments
 (0)