File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/renderer/core/canvas/links Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export function attachSlotLinkPreviewRenderer(canvas: LGraphCanvas) {
40
40
if ( canvas . linkConnector ?. isConnecting ) return
41
41
if ( ! state . active || ! state . source ) return
42
42
43
- const { pointer, candidate } = state
43
+ const { pointer } = state
44
44
45
45
const linkRenderer = canvas . linkRenderer
46
46
if ( ! linkRenderer ) return
@@ -49,8 +49,8 @@ export function attachSlotLinkPreviewRenderer(canvas: LGraphCanvas) {
49
49
const renderLinks = createLinkConnectorAdapter ( ) ?. renderLinks
50
50
if ( ! renderLinks || renderLinks . length === 0 ) return
51
51
52
- const to : ReadOnlyPoint = candidate ?. compatible
53
- ? [ candidate . layout . position . x , candidate . layout . position . y ]
52
+ const to : ReadOnlyPoint = state . candidate ?. compatible
53
+ ? [ state . candidate . layout . position . x , state . candidate . layout . position . y ]
54
54
: [ pointer . canvas . x , pointer . canvas . y ]
55
55
ctx . save ( )
56
56
for ( const link of renderLinks ) {
You can’t perform that action at this time.
0 commit comments