From 69c5e6de85cdb46e0869704abff51b483caea967 Mon Sep 17 00:00:00 2001 From: Michael Poutre Date: Thu, 31 Aug 2023 17:55:24 -0700 Subject: [PATCH] fix(widgets): Add options object if not present when forceInput: true --- web/scripts/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/scripts/app.js b/web/scripts/app.js index 42adfde8..3b7483cd 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; } }