This commit is contained in:
karrycharon
2023-12-04 20:46:29 +08:00
parent 659d9623a7
commit c98e4d1a59
3 changed files with 6 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ function handleInputModeWidgetsVisibility(node, inputModeValue) {
}
};
const inputModeVisibilityMap = nodeVisibilityMap[node.getTitle()];
const inputModeVisibilityMap = nodeVisibilityMap[node.comfyClass];
if (!inputModeVisibilityMap || !inputModeVisibilityMap[inputModeValue]) return;
@@ -319,7 +319,7 @@ const nodeWidgetHandlers = {
// In the main function where widgetLogic is called
function widgetLogic(node, widget) {
// 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) {
handler(node, widget);
}