if the output type is an array, use combo

This commit is contained in:
pythongosssss 2023-10-06 17:47:46 +01:00
parent b9b178b839
commit d761eaa486
1 changed files with 2 additions and 1 deletions

View File

@ -1306,7 +1306,8 @@ export class ComfyApp {
}
for (const o in nodeData["output"]) {
const output = nodeData["output"][o];
let output = nodeData["output"][o];
if(output instanceof Array) output = "COMBO";
const outputName = nodeData["output_name"][o] || output;
const outputShape = nodeData["output_is_list"][o] ? LiteGraph.GRID_SHAPE : LiteGraph.CIRCLE_SHAPE ;
this.addOutput(outputName, output, { shape: outputShape });