@@ -11,8 +11,8 @@ import { useUnit } from 'effector-react'
1111import { motion } from 'framer-motion'
1212import React , { memo , useCallback , useEffect , useMemo , useRef , useState } from 'react'
1313import { useTheme } from '@/components/theme/hooks/useTheme'
14+ import { calculateNodeDepth , getAbsoluteNodePosition } from '@/store/edges/anchor-coordinates'
1415import { addAnchorNode } from '@/store/edges/anchor-nodes'
15- import { getAbsoluteNodePosition , calculateNodeDepth } from '@/store/edges/anchor-coordinates'
1616import { useAnchorNodePositions } from '@/store/edges/hooks/useAnchorNodePositions'
1717import { $selectedEdgeId } from '@/store/edges/selection'
1818import { $groupNodes , $nodePositionData } from '@/store/nodes/derived-stores'
@@ -284,7 +284,8 @@ export const FlowEdge = memo(({
284284 for ( const [ nodeId , groupData ] of groupNodes ) {
285285 // Get absolute position via existing helper
286286 const absPos = getAbsoluteNodePosition ( nodeId , nodePositionData )
287- if ( ! absPos ) continue
287+ if ( ! absPos )
288+ continue
288289
289290 const isInside = x >= absPos . x
290291 && x <= absPos . x + groupData . dimensions . width
@@ -299,7 +300,8 @@ export const FlowEdge = memo(({
299300 }
300301 }
301302
302- if ( matchingGroups . length === 0 ) return null
303+ if ( matchingGroups . length === 0 )
304+ return null
303305
304306 // Return deepest (most nested) group
305307 matchingGroups . sort ( ( a , b ) => b . depth - a . depth )
0 commit comments