Fixed config error with code block

This commit is contained in:
Emir Karabeg
2025-02-13 19:39:10 -08:00
parent 9686f8cf5f
commit 12ac77613c
2 changed files with 1 additions and 9 deletions

View File

@@ -69,14 +69,7 @@ export function SubBlock({ blockId, config, isConnecting }: SubBlockProps) {
case 'table':
return <Table blockId={blockId} subBlockId={config.id} columns={config.columns ?? []} />
case 'code':
return (
<Code
blockId={blockId}
subBlockId={config.id}
isConnecting={isConnecting}
minimizable={config.minimizable}
/>
)
return <Code blockId={blockId} subBlockId={config.id} isConnecting={isConnecting} />
case 'switch':
return <Switch blockId={blockId} subBlockId={config.id} title={config.title ?? ''} />
case 'tool-input':

View File

@@ -78,7 +78,6 @@ export interface SubBlockConfig {
connectionDroppable?: boolean
hidden?: boolean
value?: (params: Record<string, any>) => string
minimizable?: boolean
condition?: {
field: string
value: string | number | boolean