File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/@react-stately/data/src Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export interface TreeData<T extends object> {
116
116
moveBefore ( key : Key , toParentKey : Key | null , index : number ) : void ,
117
117
118
118
/**
119
- * Moves an item after ia node within the tree.
119
+ * Moves an item after a node within the tree.
120
120
* @param key - The key of the item to move.
121
121
* @param toParentKey - The key of the new parent to insert into. `null` for the root.
122
122
* @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
419
419
420
420
// Otherwise, update the parent node and its ancestors.
421
421
return updateTree ( newItems , toParentKey , parentNode => {
422
- console . log ( 'parent node children ' , parentNode . children ) ;
423
422
const c = [
424
423
...parentNode . children ! . slice ( 0 , afterIndex ) ,
425
424
movedNode ,
You can’t perform that action at this time.
0 commit comments