Fix crash when no widgets on customized group node

This commit is contained in:
pythongosssss 2024-01-30 17:59:47 +00:00
parent da7a8df0d2
commit 29558fb3ac
1 changed files with 3 additions and 0 deletions

View File

@ -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) {