From cfb27d0fdc8ea2b654cd4c5546196c5e4ea4bca0 Mon Sep 17 00:00:00 2001 From: Jack Andrews Date: Fri, 1 Nov 2024 23:01:26 +0000 Subject: [PATCH] chore: remove dead code --- apps/client/components/NotebookEditor/index.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/apps/client/components/NotebookEditor/index.tsx b/apps/client/components/NotebookEditor/index.tsx index bed2a5245..8c8dceca5 100644 --- a/apps/client/components/NotebookEditor/index.tsx +++ b/apps/client/components/NotebookEditor/index.tsx @@ -152,16 +152,6 @@ export default function NotebookEditor() { setValue(editor.document); }; - function checkCanView() { - if (data && data.note.userId !== user.user.id) { - router.back(); - } - } - - useEffect(() => { - checkCanView(); - }, [data]); - return ( <>