Skip to content

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

web: fix force redirect to home on navigating to a color

Abdullah Attae3eb3c80001e
diff --git a/apps/web/src/views/notes.tsx b/apps/web/src/views/notes.tsx
index 90cca32d6..6b8d3b5e9 100644
--- a/apps/web/src/views/notes.tsx
+++ b/apps/web/src/views/notes.tsx
@@ -45,11 +45,7 @@ function Notes() {
);
useEffect(() => {
- if (
- context?.type === "color" &&
- contextNotes &&
- contextNotes.ids.length <= 0
- ) {
+ if (context?.type === "color" && contextNotes && contextNotes.length <= 0) {
navigate("/", { replace: true });
}
}, [context, contextNotes]);