mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-13 00:57:00 +08:00
Clean up Javascript code as per review
This commit is contained in:
parent
48d03c47bc
commit
64e3a43527
@ -241,11 +241,8 @@ class ComfyList {
|
|||||||
if (item.outputs) {
|
if (item.outputs) {
|
||||||
app.nodeOutputs = {};
|
app.nodeOutputs = {};
|
||||||
for (const [key, value] of Object.entries(item.outputs)) {
|
for (const [key, value] of Object.entries(item.outputs)) {
|
||||||
if (item.meta && item.meta[key] && item.meta[key].display_node) {
|
const realKey = item?.meta?.[key]?.display_node ?? key;
|
||||||
app.nodeOutputs[item.meta[key].display_node] = value;
|
app.nodeOutputs[realKey] = value;
|
||||||
} else {
|
|
||||||
app.nodeOutputs[key] = value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user