From 228ea770a327fb613d96f74283492879c1710a82 Mon Sep 17 00:00:00 2001 From: peterkogo Date: Wed, 8 Jan 2025 17:01:57 +0100 Subject: [PATCH] let let be const --- packages/react/src/container/Pane/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react/src/container/Pane/index.tsx b/packages/react/src/container/Pane/index.tsx index 3b7c94bb..ac66b665 100644 --- a/packages/react/src/container/Pane/index.tsx +++ b/packages/react/src/container/Pane/index.tsx @@ -193,15 +193,15 @@ export function Pane({ ) ); - let edgesSelectable = defaultEdgeOptions?.selectable ?? true; selectedEdgeIds.current = new Set(); + const edgesSelectable = defaultEdgeOptions?.selectable ?? true; // We look for all edges connected to the selected nodes - for (let nodeId of selectedNodeIds.current) { - let connections = connectionLookup.get(nodeId); + for (const nodeId of selectedNodeIds.current) { + const connections = connectionLookup.get(nodeId); if (!connections) continue; - for (let { edgeId } of connections.values()) { - let edge = edgeLookup.get(edgeId); + for (const { edgeId } of connections.values()) { + const edge = edgeLookup.get(edgeId); if (edge && (edge.selectable ?? edgesSelectable)) { selectedEdgeIds.current.add(edgeId); }