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

This commit is contained in:
Michael Poutre 2023-08-31 17:55:24 -07:00
parent 9a7a52f8b5
commit 69c5e6de85
No known key found for this signature in database
GPG Key ID: ACEAC6CFD77EB15E
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}