Remove duplicate opt_connection from groups muter in workflows refreshed in last 12h.

This commit is contained in:
rgthree
2024-04-20 14:07:05 -04:00
parent 78539735e8
commit 9cb70ac3a0
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -76,6 +76,14 @@ export abstract class BaseFastGroupsModeChanger extends RgthreeBaseVirtualNode {
return super.onConstructed();
}
override configure(info: SerializedLGraphNode<LGraphNode>): 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);
}