mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 14:54:12 +00:00
[fix] Prevent incorrect 'frontend_only' badges in subgraphs (#4571)
This commit is contained in:
@@ -334,8 +334,10 @@ export const useNodeDefStore = defineStore('nodeDef', () => {
|
||||
}
|
||||
function fromLGraphNode(node: LGraphNode): ComfyNodeDefImpl | null {
|
||||
// Frontend-only nodes don't have nodeDef
|
||||
// @ts-expect-error Optional chaining used in index
|
||||
return nodeDefsByName.value[node.constructor?.nodeData?.name] ?? null
|
||||
const nodeTypeName = node.constructor?.nodeData?.name
|
||||
if (!nodeTypeName) return null
|
||||
const nodeDef = nodeDefsByName.value[nodeTypeName] ?? null
|
||||
return nodeDef
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user