Skip to content

Commit d5537f5

Browse files
committed
fix(terminal): use shared isWorkflowBlockType from executor/constants
1 parent cd999f3 commit d5537f5

File tree

1 file changed

+1
-10
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/terminal

1 file changed

+1
-10
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/terminal/utils.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
XCircleIcon,
99
} from 'lucide-react'
1010
import { getBlock } from '@/blocks'
11+
import { isWorkflowBlockType } from '@/executor/constants'
1112
import { TERMINAL_BLOCK_COLUMN_WIDTH } from '@/stores/constants'
1213
import type { ConsoleEntry } from '@/stores/terminal'
1314

@@ -100,16 +101,6 @@ export function getBlockColor(blockType: string): string {
100101
return '#6b7280'
101102
}
102103

103-
/**
104-
* Checks if a block type is a workflow-calling block (calls a child workflow).
105-
* Covers both `workflow` (new) and `workflow_input` (legacy) block variants —
106-
* both are handled by WorkflowBlockHandler and emit child workflow events.
107-
*/
108-
export function isWorkflowBlockType(blockType: string): boolean {
109-
const t = blockType?.toLowerCase()
110-
return t === 'workflow' || t === 'workflow_input'
111-
}
112-
113104
/**
114105
* Determines if a keyboard event originated from a text-editable element
115106
*/

0 commit comments

Comments
 (0)