fix(ui): active menu item on load
This commit is contained in:
parent
54dff94d2c
commit
47bb62aa06
1 changed files with 2 additions and 1 deletions
|
|
@ -138,8 +138,9 @@ function SideMenu(props: Props) {
|
|||
return (
|
||||
<>
|
||||
<Menu
|
||||
defaultSelectedKeys={['1']} mode='inline' onClick={handleClick}
|
||||
mode='inline' onClick={handleClick}
|
||||
style={{ marginTop: '8px', border: 'none' }}
|
||||
selectedKeys={menu.flatMap(category => category.items.filter((item: any) => isMenuItemActive(item.key)).map(item => item.key))}
|
||||
>
|
||||
{isPreferencesActive && (
|
||||
<Menu.ItemGroup>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue