mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-25 15:15:45 -03:00
Update widgethider.js
This commit is contained in:
committed by
GitHub
parent
20486753d7
commit
eeee10561a
@@ -123,7 +123,7 @@ function handleInputModeWidgetsVisibility(node, inputModeValue) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const inputModeVisibilityMap = nodeVisibilityMap[node.getTitle()];
|
const inputModeVisibilityMap = nodeVisibilityMap[node.comfyClass];
|
||||||
|
|
||||||
if (!inputModeVisibilityMap || !inputModeVisibilityMap[inputModeValue]) return;
|
if (!inputModeVisibilityMap || !inputModeVisibilityMap[inputModeValue]) return;
|
||||||
|
|
||||||
@@ -319,7 +319,7 @@ const nodeWidgetHandlers = {
|
|||||||
// In the main function where widgetLogic is called
|
// In the main function where widgetLogic is called
|
||||||
function widgetLogic(node, widget) {
|
function widgetLogic(node, widget) {
|
||||||
// Retrieve the handler for the current node title and widget name
|
// Retrieve the handler for the current node title and widget name
|
||||||
const handler = nodeWidgetHandlers[node.getTitle()]?.[widget.name];
|
const handler = nodeWidgetHandlers[node.comfyClass]?.[widget.name];
|
||||||
if (handler) {
|
if (handler) {
|
||||||
handler(node, widget);
|
handler(node, widget);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user