Fix combo input default value (#242)

* Fix combo input default value

* Supress logs and fix failure
This commit is contained in:
Chenlei Hu
2024-07-27 22:17:42 -04:00
committed by GitHub
parent c0875d066a
commit f4f0c960a3
4 changed files with 38 additions and 3 deletions

View File

@@ -120,7 +120,8 @@ export class ComfyInputsSpec {
name,
type,
...spec,
comboOptions: typeRaw
comboOptions: typeRaw,
default: spec.default ?? typeRaw[0]
})
default:
return plainToClass(CustomInputSpec, { name, type, ...spec })