优化metadata_map
This commit is contained in:
parent
65b8e671a4
commit
2307f4336a
@ -82,7 +82,7 @@ async function initializeNodeMetadata() {
|
|||||||
const metadata = LOCAL_METADATA[type]
|
const metadata = LOCAL_METADATA[type]
|
||||||
NODE_METADATA_MAP[type] = {
|
NODE_METADATA_MAP[type] = {
|
||||||
...metadata,
|
...metadata,
|
||||||
component: resolveComponent(metadata.component)
|
component: resolveComponent(metadata.component_type)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -159,7 +159,7 @@ async def get_all_node_metadata():
|
|||||||
"color": metadata.get("color") or "#6b7280",
|
"color": metadata.get("color") or "#6b7280",
|
||||||
"description": metadata.get("description") or "",
|
"description": metadata.get("description") or "",
|
||||||
"group": metadata.get("group") or "其他",
|
"group": metadata.get("group") or "其他",
|
||||||
"component": metadata.get("component_type") or "GenericNode"
|
"component_type": metadata.get("component_type") or "GenericNode"
|
||||||
}
|
}
|
||||||
except Exception:
|
except Exception:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user