mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-28 23:16:42 +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…
x
Reference in New Issue
Block a user