diff --git a/src_web/comfyui/fast_groups_muter.ts b/src_web/comfyui/fast_groups_muter.ts index e97c5ca..80ec005 100644 --- a/src_web/comfyui/fast_groups_muter.ts +++ b/src_web/comfyui/fast_groups_muter.ts @@ -76,6 +76,14 @@ export abstract class BaseFastGroupsModeChanger extends RgthreeBaseVirtualNode { return super.onConstructed(); } + override configure(info: SerializedLGraphNode): void { + // Patch a small issue (~14h) where multiple OPT_CONNECTIONS may have been created. + // https://github.com/rgthree/rgthree-comfy/issues/206 + // TODO: This can probably be removed within a few weeks. + info.outputs.length = 1; + super.configure(info); + } + override onAdded(graph: TLGraph): void { FAST_GROUPS_SERVICE.addFastGroupNode(this); } diff --git a/web/comfyui/fast_groups_muter.js b/web/comfyui/fast_groups_muter.js index 5d6b25c..6de3e3f 100644 --- a/web/comfyui/fast_groups_muter.js +++ b/web/comfyui/fast_groups_muter.js @@ -29,6 +29,10 @@ export class BaseFastGroupsModeChanger extends RgthreeBaseVirtualNode { this.addOutput("OPT_CONNECTION", "*"); return super.onConstructed(); } + configure(info) { + info.outputs.length = 1; + super.configure(info); + } onAdded(graph) { FAST_GROUPS_SERVICE.addFastGroupNode(this); }