소스 검색

add editor condition

ryoji-s 2 년 전
부모
커밋
1d4f9fe36a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);