Skip to content

Commit bcad3b6

Browse files
committed
fix: undefined due to node.data
1 parent 9033d3a commit bcad3b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_DataStructures_/Trees/BST/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class BinarySearchTree {
109109
// eslint-disable-next-line no-param-reassign
110110
root.value = minRightNode.value;
111111
// eslint-disable-next-line no-param-reassign
112-
root.rightChild = this.delete(root.rightChild, minRightNode.data);
112+
root.rightChild = this.delete(root.rightChild, minRightNode.value);
113113
return root;
114114
}
115115
return root;

0 commit comments

Comments
 (0)