Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

fix(widgets): Add options object if not present when forceInput: true

Michael Poutre69c5e6de85cd
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 42adfde8f..3b7483cdf 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -1165,6 +1165,7 @@ export class ComfyApp {
this.addInput(inputName, type);
}
if(inputData[1]?.forceInput && config?.widget) {
+ if (!config.widget.options) config.widget.options = {};
config.widget.options.forceInput = inputData[1].forceInput;
}
}