Skip to content

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 crash when no widgets on customized group node

pythongosssss29558fb3acc9
diff --git a/web/extensions/core/groupNode.js b/web/extensions/core/groupNode.js
index 0f041fcd2..0b0763d1d 100644
--- a/web/extensions/core/groupNode.js
+++ b/web/extensions/core/groupNode.js
@@ -910,6 +910,9 @@ export class GroupNodeHandler {
const self = this;
const onNodeCreated = this.node.onNodeCreated;
this.node.onNodeCreated = function () {
+ if (!this.widgets) {
+ return;
+ }
const config = self.groupData.nodeData.config;
if (config) {
for (const n in config) {