removed console print and fixed updatePosition
This commit is contained in:
@@ -57,7 +57,7 @@ export function useMoveSelectedNodes() {
|
||||
return node;
|
||||
});
|
||||
|
||||
updateNodePositions(nodeUpdates, true, false);
|
||||
updateNodePositions(nodeUpdates);
|
||||
}, []);
|
||||
|
||||
return moveSelectedNodes;
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user