mirror of
https://github.com/google/blockly.git
synced 2026-01-14 20:37:10 +01:00
fix: insertion marker previewer finding wrong connection for different conn counts (#7833)
This commit is contained in:
@@ -196,6 +196,7 @@ export class InsertionMarkerPreviewer implements IConnectionPreviewer {
|
||||
) {
|
||||
const origConns = orig.getConnections_(true);
|
||||
const markerConns = marker.getConnections_(true);
|
||||
if (origConns.length !== markerConns.length) return null;
|
||||
for (let i = 0; i < origConns.length; i++) {
|
||||
if (origConns[i] === origConn) {
|
||||
return markerConns[i];
|
||||
|
||||
Reference in New Issue
Block a user