mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 13:32:36 +08:00
fix(widgets): Add options object if not present when forceInput: true
This commit is contained in:
parent
d2e124aaa3
commit
ff36256c30
@ -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