Merge pull request #2 from BlakeOne/fix-for-nodes-without-inputs
fix-for-nodes-without-inputs
This commit is contained in:
+5
-1
@@ -332,7 +332,11 @@ app.registerExtension({
|
||||
|
||||
const orig = LGraphCanvas.prototype.getNodeMenuOptions;
|
||||
LGraphCanvas.prototype.getNodeMenuOptions = function(node) {
|
||||
const options = orig.call(this, node);
|
||||
const options = orig.call(this, node);
|
||||
|
||||
if (!node.widgets) {
|
||||
return options;
|
||||
}
|
||||
|
||||
const loadOptions = presetManager.presets[node.type]?.map((preset) => ({
|
||||
content: preset.name,
|
||||
|
||||
Reference in New Issue
Block a user