mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
Fix undefined spec (#452)
This commit is contained in:
@@ -104,7 +104,8 @@ export class ComfyInputsSpec {
|
|||||||
): BaseInputSpec {
|
): BaseInputSpec {
|
||||||
if (!BaseInputSpec.isInputSpec(value)) return value
|
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]
|
const type = Array.isArray(typeRaw) ? 'COMBO' : value[0]
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user