From ca2aae3feaad1e5602b2612f4c343627c538ff84 Mon Sep 17 00:00:00 2001 From: Vorflux AI Date: Fri, 27 Mar 2026 05:40:16 +0000 Subject: [PATCH] Fix biome formatting: remove blank lines and collapse expression --- packages/memory-graph/src/components/graph-canvas.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/memory-graph/src/components/graph-canvas.tsx b/packages/memory-graph/src/components/graph-canvas.tsx index c76bae2d..6b3e91e0 100644 --- a/packages/memory-graph/src/components/graph-canvas.tsx +++ b/packages/memory-graph/src/components/graph-canvas.tsx @@ -55,9 +55,6 @@ export const GraphCanvas = memo(function GraphCanvas({ typeof window !== "undefined" ? window.devicePixelRatio || 1 : 1, ) - // Node ID tracking for smart re-init - - // All mutable render state in a single ref — the rAF loop reads from here const s = useRef({ nodes, @@ -240,9 +237,7 @@ export const GraphCanvas = memo(function GraphCanvas({ // Report viewport changes (zoom, pan, or simulation-driven node movement) // so popover positions update. Covers: momentum, spring zoom, mouse drag, and sim. const vpChanged = - vp.panX !== prevVpX || - vp.panY !== prevVpY || - vp.zoom !== prevVpZoom + vp.panX !== prevVpX || vp.panY !== prevVpY || vp.zoom !== prevVpZoom if ((vpChanged || simActive) && cb.current.onViewportChange) { cb.current.onViewportChange(vp.zoom) prevVpX = vp.panX