Skip to content

Commit

Permalink
chore: reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Mar 17, 2022
1 parent 7be42a1 commit aa0696c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/nodeUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ function convertItemsToNodes(list: ItemType[]) {
if (type === 'group') {
// Group
return (
<MenuItemGroup title={label} key={mergedKey} {...restProps}>
<MenuItemGroup key={mergedKey} {...restProps} title={label}>
{convertItemsToNodes(children)}
</MenuItemGroup>
);
}

// Sub Menu
return (
<SubMenu title={label} key={mergedKey} {...restProps}>
<SubMenu key={mergedKey} {...restProps} title={label}>
{convertItemsToNodes(children)}
</SubMenu>
);
Expand Down

0 comments on commit aa0696c

Please sign in to comment.