The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Combo support detault value
pythongossssse5318d918cde
diff --git a/web/scripts/app.js b/web/scripts/app.jsindex e70e1c157..8b832eba1 100644--- a/web/scripts/app.js+++ b/web/scripts/app.js@@ -497,7 +497,11 @@ class ComfyApp {if (Array.isArray(type)) {// Enums e.g. latent rotation- this.addWidget("combo", inputName, type[0], () => {}, { values: type });+ let defaultValue = type[0];+ if (inputData[1] && inputData[1].default) {+ defaultValue = inputData[1].default;+ }+ this.addWidget("combo", inputName, defaultValue, () => {}, { values: type });} else if (`${type}:${inputName}` in widgets) {// Support custom widgets by Type:NameObject.assign(config, widgets[`${type}:${inputName}`](this, inputName, inputData, app) || {});