From aede0b91e0678295b3b89c7679df8bf0e0d73c66 Mon Sep 17 00:00:00 2001 From: MaraScott Date: Tue, 21 May 2024 23:42:24 +0200 Subject: [PATCH] hotfix access to inputData[1] --- web/scripts/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/scripts/widgets.js b/web/scripts/widgets.js index 6825b6937..bf9562271 100644 --- a/web/scripts/widgets.js +++ b/web/scripts/widgets.js @@ -348,7 +348,7 @@ export const ComfyWidgets = { STRING(node, inputName, inputData, app) { const defaultVal = inputData[1].default || ""; const multiline = !!inputData[1].multiline; - inputData[1].placeholder = inputData[1].placeholder || inputData[1].label || inputName; + inputData[1].placeholder = inputData[1]?.placeholder || inputData[1]?.label || inputName; let res; if (multiline) {