Skip to content

Commit

Permalink
Fix v1 build
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Nov 25, 2024
1 parent 90c0233 commit 524be0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/connect-v1/src/components/atoms/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ export const NavBar = () => {
const [items, setItems] = useState([...ENV.navBar]);
const openSubMenuHandler = (index: number) => {
const newItems = [...items];
if (newItems[index].subMenu) {
if (newItems[index].subMenu) {
newItems[index].subMenu.open = !newItems[index].subMenu.open;
setItems(newItems);
}
const item = newItems[index];
if (item && item.subMenu) {
item.subMenu.open = !item.subMenu?.open;
newItems[index] = item;
setItems(newItems);
}
};
return (
Expand Down

0 comments on commit 524be0d

Please sign in to comment.