diff --git a/src/components/Nodes/wrapNode.tsx b/src/components/Nodes/wrapNode.tsx index 1589bf0d..8e0a7ced 100644 --- a/src/components/Nodes/wrapNode.tsx +++ b/src/components/Nodes/wrapNode.tsx @@ -141,7 +141,6 @@ export default (NodeComponent: ComponentType) => { const nodeElement = useRef(null); const [offset, setOffset] = useState({ x: 0, y: 0 }); const [isDragging, setDragging] = useState(false); - const position = { x: xPos, y: yPos }; const nodeClasses = cx('react-flow__node', { selected }); const nodeStyle = { @@ -184,7 +183,7 @@ export default (NodeComponent: ComponentType) => { } return; - }, [nodeElement.current]); + }, []); return (