Skip to content

Commit ef8b952

Browse files
authored
Fix undefined spec (#452)
1 parent e6d2965 commit ef8b952

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stores/nodeDefStore.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ export class ComfyInputsSpec {
104104
): BaseInputSpec {
105105
if (!BaseInputSpec.isInputSpec(value)) return value
106106

107-
const [typeRaw, spec] = value
107+
const [typeRaw, _spec] = value
108+
const spec = _spec ?? {}
108109
const type = Array.isArray(typeRaw) ? 'COMBO' : value[0]
109110

110111
switch (type) {

0 commit comments

Comments
 (0)