Merge pull request #2 from alexopus/patch-1
Handle nodes with no widgets
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ app.registerExtension({
|
||||
// Collect menu items first
|
||||
const menuItems = [];
|
||||
|
||||
node.widgets.forEach((widget) => {
|
||||
node.widgets?.forEach((widget) => {
|
||||
if (widget.type === "combo") {
|
||||
const value = widget.value;
|
||||
if (value.has_submenu) {
|
||||
|
||||
Reference in New Issue
Block a user