Fix undefined spec (#452)

This commit is contained in:
Chenlei Hu
2024-08-15 23:37:42 -04:00
committed by GitHub
parent e6d29656fa
commit ef8b952d79

View File

@@ -104,7 +104,8 @@ export class ComfyInputsSpec {
): BaseInputSpec {
if (!BaseInputSpec.isInputSpec(value)) return value
const [typeRaw, spec] = value
const [typeRaw, _spec] = value
const spec = _spec ?? {}
const type = Array.isArray(typeRaw) ? 'COMBO' : value[0]
switch (type) {