mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 11:23:29 +00:00
fix(widgets): Add options object if not present when forceInput: true
This commit is contained in:
parent
9a7a52f8b5
commit
69c5e6de85
@ -1165,6 +1165,7 @@ export class ComfyApp {
|
|||||||
this.addInput(inputName, type);
|
this.addInput(inputName, type);
|
||||||
}
|
}
|
||||||
if(inputData[1]?.forceInput && config?.widget) {
|
if(inputData[1]?.forceInput && config?.widget) {
|
||||||
|
if (!config.widget.options) config.widget.options = {};
|
||||||
config.widget.options.forceInput = inputData[1].forceInput;
|
config.widget.options.forceInput = inputData[1].forceInput;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user