Properly implement ComfyNodeDef interface (#1821)

* nit

* Properly implement ComfyNodeDef interface

* nit

* Mark readonly
This commit is contained in:
Chenlei Hu
2024-12-06 09:00:15 -08:00
committed by GitHub
parent aa68422e0f
commit ae26390776
6 changed files with 67 additions and 37 deletions

View File

@@ -1600,7 +1600,7 @@ export class ComfyApp {
app.canvas.getWidgetLinkType = function (widget, node) {
const nodeDefStore = useNodeDefStore()
const nodeDef = nodeDefStore.nodeDefsByName[node.type]
const input = nodeDef.input.getInput(widget.name)
const input = nodeDef.inputs.getInput(widget.name)
return input?.type
}