Skip to content

Commit

Permalink
Update static/app/views/stories/storyTree.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik Dorfmeister <[email protected]>
  • Loading branch information
JonasBa and TkDodo authored Mar 3, 2025
1 parent 97a66e9 commit 5684544
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/app/views/stories/storyTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ export function useStoryTree(
Object.entries(root.children).sort(rootCategorySort)
);
// Sort the children of each category by file, folder or alphabetically
for (const key in root.children) {
root.children[key]!.sort(folderOrSearchScoreFirst);
}
Object.values(root.children).forEach(child => {
child.sort(folderOrSearchScoreFirst);
});
}

// If the user navigates to a story, expand to its location in the tree
Expand Down

0 comments on commit 5684544

Please sign in to comment.