Skip to content

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

fix: nav view not show/hiding

thecodrr14aba6facad8
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index 9cdc495f9..e6e56ec29 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -87,7 +87,6 @@ function App() {
const isSideMenuOpen = useStore(store => store.isSideMenuOpen);
const refreshColors = useStore(store => store.refreshColors);
const setSelectedContext = useNotesStore(store => store.setSelectedContext);
-
const isFocusModeEnabled = useAppStore(store => store.isFocusModeEnabled);
useEffect(() => {
@@ -97,8 +96,8 @@ function App() {
}, []);
useEffect(() => {
- isFocusModeEnabled ? setShow(false) : setShow(true);
- }, [isFocusModeEnabled, setShow]);
+ if (isFocusModeEnabled) setShow(false);
+ }, [isFocusModeEnabled, setShow, show]);
const colors = useStore(store => store.colors);
return (
<ThemeProvider>