Skip to content

Commit 76a10c1

Browse files
committed
fix: remove unused highlightedEdges variable to fix TS6133 error
1 parent 8a3cd16 commit 76a10c1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/components/TreeVisualization/TreeVisualization.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ export function TreeVisualization({ root, currentStep }: TreeVisualizationProps)
200200

201201
// 当前步骤的高亮状态
202202
const highlightedNodes = new Set(currentStep?.highlightedNodes || []);
203-
const highlightedEdges = new Set(
204-
(currentStep?.highlightedEdges || []).map(([a, b]) => `${a}-${b}`)
205-
);
206203
const currentNodeId = currentStep?.currentNodeId;
207204
const animationType = currentStep?.animationType || 'none';
208205
const animationData = currentStep?.animationData;

0 commit comments

Comments
 (0)