The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix add selected nodes to empty group
Jairo Correae8c02219ee41
diff --git a/web/extensions/core/groupOptions.js b/web/extensions/core/groupOptions.jsindex 3ec0e3fd9..d3d52bf29 100644--- a/web/extensions/core/groupOptions.js+++ b/web/extensions/core/groupOptions.js@@ -75,6 +75,15 @@ app.registerExtension({group.recomputeInsideNodes();const nodesInGroup = group._nodes;+ options.push({+ content: "Add Selected Nodes To Group",+ disabled: !Object.keys(app.canvas.selected_nodes || {}).length,+ callback: () => {+ addNodesToGroup(group, this.selected_nodes)+ this.graph.change();+ }+ });+// No nodes in group, return default optionsif (nodesInGroup.length === 0) {return options;@@ -92,15 +101,6 @@ app.registerExtension({}}- options.push({- content: "Add Selected Nodes To Group",- disabled: !Object.keys(app.canvas.selected_nodes || {}).length,- callback: () => {- addNodesToGroup(group, this.selected_nodes)- this.graph.change();- }- });-options.push({content: "Fit Group To Nodes",callback: () => {