mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: fix force redirect to home on navigating to a color
This commit is contained in:
@@ -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