mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-21 04:48:00 -05:00
fix(linear): team selector in tool input (#2886)
This commit is contained in:
committed by
GitHub
parent
037dad6975
commit
72c2ba7443
@@ -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}
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user