Skip to content

Commit

Permalink
change variable name to plural
Browse files Browse the repository at this point in the history
  • Loading branch information
kaulfield23 committed Dec 22, 2023
1 parent 662a780 commit e4527af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/organizations/components/OrganizationTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ interface OrganizationTreeProps {

function renderTree(props: OrganizationTreeProps): React.ReactNode {
const { treeItemData, orgId, onSwitchOrg } = props;
const sortedTreeItem = [...treeItemData].sort((a, b) =>
const sortedTreeItems = [...treeItemData].sort((a, b) =>
a.title.localeCompare(b.title)
);

return sortedTreeItem.map((item) => (
return sortedTreeItems.map((item) => (
<TreeItem
key={item.id}
label={
Expand Down

0 comments on commit e4527af

Please sign in to comment.