mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 04:01:43 +02:00
web: fix force redirect to home on navigating to a color
This commit is contained in:
committed by
Abdullah Atta
parent
cb7e438cd2
commit
a32df1a009
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user