Revert "fix #46"

This commit is contained in:
VALADI K JAGANATHAN
2023-12-08 18:01:19 +05:30
committed by GitHub
parent 666a25de9a
commit 173778371b
3 changed files with 6 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ function handleInputModeWidgetsVisibility(node, inputModeValue) {
}
};
const inputModeVisibilityMap = nodeVisibilityMap[node.comfyClass];
const inputModeVisibilityMap = nodeVisibilityMap[node.getTitle()];
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.comfyClass]?.[widget.name];
const handler = nodeWidgetHandlers[node.getTitle()]?.[widget.name];
if (handler) {
handler(node, widget);
}