Browse Source

fix not found logic

Yuki Takei 5 months ago
parent
commit
e0487c6188
1 changed files with 1 additions and 1 deletions
  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;
     }