소스 검색

fix not found logic

Yuki Takei 7 달 전
부모
커밋
e0487c6188
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/app/src/client/components/Navbar/PageEditorModeManager.tsx

+ 1 - 1
apps/app/src/client/components/Navbar/PageEditorModeManager.tsx

@@ -74,7 +74,7 @@ export const PageEditorModeManager = (props: Props): JSX.Element => {
   const { isCreating, create } = useCreatePage();
 
   const editButtonClickedHandler = useCallback(async () => {
-    if (isNotFound == null || isNotFound === false) {
+    if (isNotFound === false) {
       setEditorMode(EditorMode.Editor);
       return;
     }