Skip to content

Commit cfb27d0

Browse files
committed
chore: remove dead code
1 parent cd794d1 commit cfb27d0

File tree

1 file changed

+0
-10
lines changed
  • apps/client/components/NotebookEditor

1 file changed

+0
-10
lines changed

apps/client/components/NotebookEditor/index.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,6 @@ export default function NotebookEditor() {
152152
setValue(editor.document);
153153
};
154154

155-
function checkCanView() {
156-
if (data && data.note.userId !== user.user.id) {
157-
router.back();
158-
}
159-
}
160-
161-
useEffect(() => {
162-
checkCanView();
163-
}, [data]);
164-
165155
return (
166156
<>
167157
<div className="flex flex-row items-center justify-end py-1 px-6 space-x-4 mt-2">

0 commit comments

Comments
 (0)