From 45380f7ca03bebec8a158c2f3384dc001d86ab5b Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:17:16 +1100 Subject: [PATCH] Fix TypeError thrown (#1461) Missing node type + reroute linked --- src/extensions/core/widgetInputs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions/core/widgetInputs.ts b/src/extensions/core/widgetInputs.ts index 4d9757148..bf09fa39c 100644 --- a/src/extensions/core/widgetInputs.ts +++ b/src/extensions/core/widgetInputs.ts @@ -414,7 +414,7 @@ class PrimitiveNode extends LGraphNode { } export function getWidgetConfig(slot) { - return slot.widget[CONFIG] ?? slot.widget[GET_CONFIG]() + return slot.widget[CONFIG] ?? slot.widget[GET_CONFIG]?.() ?? ['*', {}] } function getConfig(widgetName) { @@ -590,7 +590,7 @@ export function mergeIfValid( config1?: unknown ) { if (!config1) { - config1 = output.widget[CONFIG] ?? output.widget[GET_CONFIG]() + config1 = getWidgetConfig(output) } if (config1[0] instanceof Array) {