Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: clicking on Settings doesn't toggle the settings pane on/off (#1882)

GitStartcb1c023815e4
diff --git a/apps/web/src/components/navigation-menu/index.tsx b/apps/web/src/components/navigation-menu/index.tsx
index 3c7f08d6b..9fc5955d1 100644
--- a/apps/web/src/components/navigation-menu/index.tsx
+++ b/apps/web/src/components/navigation-menu/index.tsx
@@ -273,7 +273,9 @@ function NavigationMenu(props: NavigationMenuProps) {
title={settings.title}
icon={settings.icon}
onClick={() => {
- _navigate(settings.path);
+ if (!isMobile && location === settings.path)
+ return toggleNavigationContainer();
+ _navigate(settings.path);
}}
selected={location.startsWith(settings.path)}
>