removed console print and fixed updatePosition

This commit is contained in:
peterkogo
2024-01-24 13:53:44 +01:00
parent 829c82cfda
commit ef12aa413e
2 changed files with 1 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ export function useMoveSelectedNodes() {
return node;
});
updateNodePositions(nodeUpdates, true, false);
updateNodePositions(nodeUpdates);
}, []);
return moveSelectedNodes;

View File

@@ -3,7 +3,6 @@ import { EdgeLookup, NodeLookup } from '@xyflow/system';
import type { Node, Edge, EdgeChange, NodeChange, NodeSelectionChange, EdgeSelectionChange } from '../types';
export function handleParentExpand(updatedElements: any[], updateItem: any) {
console.log(updatedElements, updateItem);
for (const [index, item] of updatedElements.entries()) {
if (item.id === updateItem.parentNode) {
const parent = { ...item };