Fix reroutePrimitive widget create config handling

Possibly fix #118

Seems to be a regression after upgraded ComfyUI
This commit is contained in:
Wangchong Zhou
2023-11-15 21:41:13 +08:00
committed by GitHub
parent 27555d4f71
commit 96c290c4a2
+1 -1
View File
@@ -154,7 +154,7 @@ app.registerExtension({
v = this.widgets_values[0];
}
let config = [link.type, {}];
if (input.widget) {
if (input.widget?.config) {
config = input.widget.config;
}
const { widget } = ComfyWidgets[widgetType](this, "value", config, app);