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

@@ -105,8 +105,8 @@ const litegraphColors = colors ?? defaultColorPalette.colors.litegraph_base
const widgetStore = useWidgetStore()
const nodeDef = props.nodeDef
const allInputDefs = nodeDef.input.all
const allOutputDefs = nodeDef.output.all
const allInputDefs = nodeDef.inputs.all
const allOutputDefs = nodeDef.outputs.all
const slotInputDefs = allInputDefs.filter(
(input) => !widgetStore.inputIsWidget(input)
)