瀏覽代碼

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>