Skip to content

Commit

Permalink
fix memo
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jan 30, 2024
1 parent 0c1c124 commit bbd3f18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ui/manager/src/container/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ const Sidebar = React.memo(function Sideber({ onMenuClick }: SidebarProps) {
const bottomItems = api.getElements(Addon_TypesEnum.experimental_SIDEBAR_BOTTOM);
const topItems = api.getElements(Addon_TypesEnum.experimental_SIDEBAR_TOP);
// eslint-disable-next-line react-hooks/exhaustive-deps
const bottom = useMemo(() => Object.values(bottomItems), [...Object.values(bottomItems)]);
const bottom = useMemo(() => Object.values(bottomItems), [Object.keys(bottomItems).join('')]);
// eslint-disable-next-line react-hooks/exhaustive-deps
const top = useMemo(() => Object.values(topItems), [...Object.values(topItems)]);
const top = useMemo(() => Object.values(topItems), [Object.keys(topItems).join('')]);

return {
title: name,
Expand Down

0 comments on commit bbd3f18

Please sign in to comment.