Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesplease committed Jul 19, 2021
1 parent cc4ffcf commit 247980f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/tree-navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function getChildren({
if (typeof node.preferredChildIndex !== 'undefined') {
let childIndex;
if (typeof node.preferredChildIndex === 'number') {
childIndex = 0;
childIndex = node.preferredChildIndex;
} else if (typeof node.preferredChildIndex === 'function') {
childIndex = node.preferredChildIndex();
}
Expand Down

0 comments on commit 247980f

Please sign in to comment.