-1

I'm using reactflow to make flowchart. While using the function getIntersectionNodes, the typeerror is shown that it cannot read properties of undefined. However, It worked well when I tested the same code in my demo version. Does anyone have idea why this is happening?

const onNodeDrag = useCallback((e,node) => {  
    if(node === undefined ) return;
    console.log(getIntersectingNodes(node)) //this line causes the error
}

sieun
  • 39
  • 3

0 Answers0