mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Made reliable type passdown from executor to console
This commit is contained in:
+1
-2
@@ -18,7 +18,6 @@ import {
|
||||
BlockLog
|
||||
} from './types'
|
||||
import { tools } from '@/tools'
|
||||
import { getBlockTypeForTool } from '@/blocks'
|
||||
|
||||
export class Executor {
|
||||
constructor(
|
||||
@@ -126,7 +125,7 @@ export class Executor {
|
||||
const blockLog: Partial<BlockLog> = {
|
||||
blockId: block.id,
|
||||
blockTitle: block.metadata?.title,
|
||||
blockType: getBlockTypeForTool(block.config.tool || ''),
|
||||
blockType: block.metadata?.type,
|
||||
startedAt: new Date().toISOString(),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user