mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-13 23:12:35 +08:00
Fix crash on virtual nodes e.g. note
This commit is contained in:
parent
34d0ae3cf1
commit
acad6072d1
@ -578,7 +578,8 @@ const ext = {
|
|||||||
innerNode.configure(n);
|
innerNode.configure(n);
|
||||||
|
|
||||||
for (const innerWidget of innerNode.widgets ?? []) {
|
for (const innerWidget of innerNode.widgets ?? []) {
|
||||||
const groupWidgetName = slots.widgets[i][innerWidget.name];
|
const groupWidgetName = slots.widgets[i]?.[innerWidget.name];
|
||||||
|
if(!groupWidgetName) continue;
|
||||||
const groupWidget = node.widgets.find((w) => w.name === groupWidgetName);
|
const groupWidget = node.widgets.find((w) => w.name === groupWidgetName);
|
||||||
if (groupWidget) {
|
if (groupWidget) {
|
||||||
innerWidget.value = groupWidget.value;
|
innerWidget.value = groupWidget.value;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user