فهرست منبع

add condition

ryoji-s 3 سال پیش
والد
کامیت
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' : ''}`;
 
-    if (path == null) {
-      return <></>;
-    }
-
     return (
       <>
         <div className={className}>
@@ -288,7 +284,7 @@ const GrowiContextualSubNavigation = (props) => {
             />
           )}
         </div>
-        {currentUser != null && (
+        {path != null && currentUser != null && (
           <CreateTemplateModal
             path={path}
             isOpen={isPageTemplateModalShown}