소스 검색

clean code

Yuki Takei 6 년 전
부모
커밋
352eef8bcf
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/client/js/components/Navbar/GrowiSubNavigation.jsx

+ 1 - 2
src/client/js/components/Navbar/GrowiSubNavigation.jsx

@@ -31,7 +31,7 @@ const GrowiSubNavigation = (props) => {
   const isPageNotFound = pageId == null;
   const isPageInTrash = isTrashPage(path);
 
-  const dPagePath = new DevidedPagePath(pageContainer.state.path, false, true);
+  const dPagePath = new DevidedPagePath(path, false, true);
   const linkedPagePathFormer = new LinkedPagePath(dPagePath.former);
   const renderFormerLink = () => (
     <>
@@ -49,7 +49,6 @@ const GrowiSubNavigation = (props) => {
             pageId={pageId}
             pagePath={pageContainer.state.path}
             isPageForbidden={isPageForbidden}
-            isPageInTrash={isPageInTrash}
           />
         </h1>
       </div>