Fix combos

This commit is contained in:
space-nuko
2023-05-10 22:09:09 -05:00
parent 48923ec60f
commit 0013833b16
2 changed files with 1640 additions and 1292 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -875,8 +875,8 @@ export default class ComfyApp {
comboNode.doAutoConfig(inputSlot, { includeProperties: new Set(["values"]), setWidgetTitle: false })
comboNode.formatValues(rawValues)
if (!inputSlot.config.values?.includes(get(comboNode.value))) {
comboNode.setValue(inputSlot.config.defaultValue || inputSlot.config.values[0])
if (!rawValues?.includes(get(comboNode.value))) {
comboNode.setValue(rawValues[0])
}
}
}