Pārlūkot izejas kodu

add editor condition

ryoji-s 2 gadi atpakaļ
vecāks
revīzija
1d4f9fe36a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      apps/app/src/components/Navbar/hooks.tsx

+ 1 - 1
apps/app/src/components/Navbar/hooks.tsx

@@ -27,7 +27,7 @@ export const useOnPageEditorModeButtonClicked = (
       return;
     }
 
-    if (isNotFound) {
+    if (editorMode === EditorMode.Editor && isNotFound) {
       try {
         setIsCreating(true);