mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 10:53:29 +00:00
Fix crash when no widgets on customized group node
This commit is contained in:
parent
da7a8df0d2
commit
29558fb3ac
@ -910,6 +910,9 @@ export class GroupNodeHandler {
|
|||||||
const self = this;
|
const self = this;
|
||||||
const onNodeCreated = this.node.onNodeCreated;
|
const onNodeCreated = this.node.onNodeCreated;
|
||||||
this.node.onNodeCreated = function () {
|
this.node.onNodeCreated = function () {
|
||||||
|
if (!this.widgets) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const config = self.groupData.nodeData.config;
|
const config = self.groupData.nodeData.config;
|
||||||
if (config) {
|
if (config) {
|
||||||
for (const n in config) {
|
for (const n in config) {
|
||||||
|
Loading…
Reference in New Issue
Block a user