Clean up Javascript code as per review

This commit is contained in:
Jacob Segal 2024-08-01 20:04:49 -07:00
parent 48d03c47bc
commit 64e3a43527

View File

@ -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;
}
}
},