Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aa2d362

Browse files
committedJan 30, 2025·
remove console logs
1 parent 768e253 commit aa2d362

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎packages/@react-stately/data/src/useTreeData.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export interface TreeData<T extends object> {
116116
moveBefore(key: Key, toParentKey: Key | null, index: number): void,
117117

118118
/**
119-
* Moves an item after ia node within the tree.
119+
* Moves an item after a node within the tree.
120120
* @param key - The key of the item to move.
121121
* @param toParentKey - The key of the new parent to insert into. `null` for the root.
122122
* @param index - The index within the new parent to insert after.
@@ -419,7 +419,6 @@ export function useTreeData<T extends object>(options: TreeOptions<T>): TreeData
419419

420420
// Otherwise, update the parent node and its ancestors.
421421
return updateTree(newItems, toParentKey, parentNode => {
422-
console.log('parent node children ', parentNode.children);
423422
const c = [
424423
...parentNode.children!.slice(0, afterIndex),
425424
movedNode,

0 commit comments

Comments
 (0)
Please sign in to comment.