mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
small log fix
This commit is contained in:
@@ -142,9 +142,6 @@ function GraphCanvasInner({
|
||||
// No new nodes - just update data without changing positions
|
||||
setNodes((currentNodes) => {
|
||||
const positionMap = new Map(currentNodes.map((n) => [n.id, n.position]));
|
||||
// Filter to only include nodes that still exist
|
||||
const existingNodeIds = new Set(layoutedNodes.map((n) => n.id));
|
||||
|
||||
return layoutedNodes.map((node) => ({
|
||||
...node,
|
||||
position: positionMap.get(node.id) || node.position,
|
||||
|
||||
Reference in New Issue
Block a user