From 3c5fc7eb3586c8b074b687865b5cb9c38839cd27 Mon Sep 17 00:00:00 2001 From: NyaamZ <43065065+NyaamZ@users.noreply.github.com> Date: Fri, 30 May 2025 12:14:37 +0900 Subject: [PATCH] fix error widgethider.js (#321) fix error widgethider.js --- js/widgethider.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/widgethider.js b/js/widgethider.js index 4d1795b..a270872 100644 --- a/js/widgethider.js +++ b/js/widgethider.js @@ -8,7 +8,8 @@ const findWidgetByName = (node, name) => { }; const doesInputWithNameExist = (node, name) => { - return node.inputs ? node.inputs.some((input) => input.name === name) : false; + // return node.inputs ? node.inputs.some((input) => input.name === name) : false; + return false; }; const HIDDEN_TAG = "tschide"; @@ -605,7 +606,9 @@ function handleXYInputControlNetPlotPlotType(node, widget) { app.registerExtension({ name: "efficiency.widgethider", nodeCreated(node) { + if (!nodeWidgetHandlers[node.comfyClass]) return; for (const w of node.widgets || []) { + if (!nodeWidgetHandlers[node.comfyClass][w.name]) continue; let widgetValue = w.value; // Store the original descriptor if it exists