[BugFix] Fix adding node via context menu (#682)

Resolves https://github.com/Comfy-Org/ComfyUI_frontend/issues/2814

Culprit: https://github.com/Comfy-Org/litegraph.js/pull/647
This commit is contained in:
Chenlei Hu
2025-03-02 18:38:31 -05:00
committed by GitHub
parent 017a473f5b
commit 326670206d

View File

@@ -827,7 +827,6 @@ export class LGraphCanvas implements ConnectionColorContext {
const canvas = LGraphCanvas.active_canvas
const ref_window = canvas.getCanvasWindow()
const graph = canvas.graph
if (!graph) return
inner_onMenuAdded("", prev_menu)
return false