mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
Fixed config error with code block
This commit is contained in:
@@ -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':
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user