ryoji-s 3 лет назад
Родитель
Сommit
1403cc5997
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

+ 1 - 5
packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -247,10 +247,6 @@ const GrowiContextualSubNavigation = (props) => {
 
 
     const className = `d-flex flex-column align-items-end justify-content-center ${isViewMode ? ' h-50' : ''}`;
     const className = `d-flex flex-column align-items-end justify-content-center ${isViewMode ? ' h-50' : ''}`;
 
 
-    if (path == null) {
-      return <></>;
-    }
-
     return (
     return (
       <>
       <>
         <div className={className}>
         <div className={className}>
@@ -288,7 +284,7 @@ const GrowiContextualSubNavigation = (props) => {
             />
             />
           )}
           )}
         </div>
         </div>
-        {currentUser != null && (
+        {path != null && currentUser != null && (
           <CreateTemplateModal
           <CreateTemplateModal
             path={path}
             path={path}
             isOpen={isPageTemplateModalShown}
             isOpen={isPageTemplateModalShown}