fix blockType utils

This commit is contained in:
Abhimanyu Yadav
2025-06-04 10:46:45 +05:30
parent 5c7c7ca874
commit 5b45d246ef

View File

@@ -431,8 +431,7 @@ export const convertLibraryAgentIntoBlock = (agent: LibraryAgent) => {
// Need to change it once, we got provider blocks
export const getBlockType = (item: any) => {
console.log(item);
if (item.inputSchema.properties?.model?.title === "LLM Model") {
if (item?.inputSchema?.properties?.model?.title === "LLM Model") {
return "ai_agent";
}
if (item.id && item.name && item.inputSchema && item.outputSchema) {