fix: remove redundant spread in renderDraggingLink call

renderDraggingLink already applies linkMarkerShape: None internally,
so the spread + override at the call site was unnecessary allocation.

https://github.com/Comfy-Org/ComfyUI_frontend/pull/9405#discussion_r2887883450
This commit is contained in:
bymyself
2026-03-15 22:16:02 -07:00
parent 664ee8fcfc
commit 7cabe98c20

View File

@@ -5021,10 +5021,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
colour,
fromDirection,
dragDirection,
{
...(this._cachedLinkRenderContext ?? this.buildLinkRenderContext()),
linkMarkerShape: LinkMarkerShape.None
}
this._cachedLinkRenderContext ?? this.buildLinkRenderContext()
)
}
if (renderLink instanceof MovingInputLink) this.setDirty(false, true)