mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-12 12:40:04 +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) {
|
||||
app.nodeOutputs = {};
|
||||
for (const [key, value] of Object.entries(item.outputs)) {
|
||||
if (item.meta && item.meta[key] && item.meta[key].display_node) {
|
||||
app.nodeOutputs[item.meta[key].display_node] = value;
|
||||
} else {
|
||||
app.nodeOutputs[key] = value;
|
||||
}
|
||||
const realKey = item?.meta?.[key]?.display_node ?? key;
|
||||
app.nodeOutputs[realKey] = value;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user