From 8189ac6ee7aa6c6001f7cea496d92b3b7d95d0da Mon Sep 17 00:00:00 2001 From: Sirshendu Ganguly Date: Tue, 3 Feb 2026 22:03:30 -0500 Subject: [PATCH] remove redundant func --- clientlibs/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clientlibs/utils.js b/clientlibs/utils.js index c6e7ea1..2d02ed6 100644 --- a/clientlibs/utils.js +++ b/clientlibs/utils.js @@ -2356,9 +2356,8 @@ function klingProviderSettingsToggleHandler(klingNode) { const characterOrientationWidget = klingNode.widgets.find(w => w.name === "characterOrientation"); // Helper function to toggle widget enabled state (EXACT same pattern as imageInferenceToggleHandler) + // Callers guard with if (useX && xWidget) before invoking function toggleWidgetState(useWidget, paramWidget, paramName) { - if (!useWidget || !paramWidget) return; - function toggleEnabled() { const enabled = useWidget.value === true;