From ef8b952d79cd31741152a699e591623fd6b27d49 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Thu, 15 Aug 2024 23:37:42 -0400 Subject: [PATCH] Fix undefined spec (#452) --- src/stores/nodeDefStore.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/nodeDefStore.ts b/src/stores/nodeDefStore.ts index c754ba021..03715f1c5 100644 --- a/src/stores/nodeDefStore.ts +++ b/src/stores/nodeDefStore.ts @@ -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) {