mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
Fix undefined var 'cloned' (#33)
This commit is contained in:
@@ -5920,7 +5920,8 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
// clone node ALT dragging
|
||||
if (LiteGraph.alt_drag_do_clone_nodes && e.altKey && node && this.allow_interaction && !skip_action && !this.read_only)
|
||||
{
|
||||
if (cloned = node.clone()){
|
||||
const cloned = node.clone()
|
||||
if (cloned) {
|
||||
cloned.pos[0] += 5;
|
||||
cloned.pos[1] += 5;
|
||||
this.graph.add(cloned,false,{doCalcSize: false});
|
||||
|
||||
Reference in New Issue
Block a user