Răsfoiți Sursa

fix not found logic

Yuki Takei 6 luni în urmă
părinte
comite
e0487c6188

+ 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;
     }