mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user