Skip to content

Commit 9616495

Browse files
committed
updated to account for workflow input tool on top of just workflow as well
1 parent 1b38b2e commit 9616495

File tree

1 file changed

+7
-5
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ export function ToolInput({
10361036
block.type === 'api' ||
10371037
block.type === 'webhook_request' ||
10381038
block.type === 'workflow' ||
1039+
block.type === 'workflow_input' ||
10391040
block.type === 'knowledge' ||
10401041
block.type === 'function') &&
10411042
block.type !== 'evaluator' &&
@@ -1761,7 +1762,7 @@ export function ToolInput({
17611762
iconElement: createToolIcon('#6366F1', WorkflowIcon),
17621763
onSelect: () => {
17631764
const newTool: StoredTool = {
1764-
type: 'workflow',
1765+
type: 'workflow_input',
17651766
title: 'Workflow',
17661767
toolId: 'workflow_executor',
17671768
params: {
@@ -2200,7 +2201,7 @@ export function ToolInput({
22002201
const isMcpTool = tool.type === 'mcp'
22012202
const isWorkflowTool = tool.type === 'workflow'
22022203
const toolBlock =
2203-
!isCustomTool && !isMcpTool && !isWorkflowTool
2204+
!isCustomTool && !isMcpTool
22042205
? toolBlocks.find((block) => block.type === tool.type)
22052206
: null
22062207

@@ -2374,9 +2375,10 @@ export function ToolInput({
23742375
</Tooltip.Root>
23752376
)
23762377
})()}
2377-
{tool.type === 'workflow' && tool.params?.workflowId && (
2378-
<WorkflowToolDeployBadge workflowId={tool.params.workflowId} />
2379-
)}
2378+
{(tool.type === 'workflow' || tool.type === 'workflow_input') &&
2379+
tool.params?.workflowId && (
2380+
<WorkflowToolDeployBadge workflowId={tool.params.workflowId} />
2381+
)}
23802382
</div>
23812383
<div className='flex flex-shrink-0 items-center gap-[8px]'>
23822384
{supportsToolControl && !(isMcpTool && isMcpToolUnavailable(tool)) && (

0 commit comments

Comments
 (0)