소스 검색

BugFix isLinkable flag

Yuki Takei 9 년 전
부모
커밋
3b85449c23
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      packages/growi-plugin-lsx/src/resource/js/components/PageList/Page.js

+ 2 - 4
packages/growi-plugin-lsx/src/resource/js/components/PageList/Page.js

@@ -47,10 +47,8 @@ export class Page extends React.Component {
         this.setState({isVisible});
       }
 
-      if (this.state.isExists) {
-        const isLinkable = (optDepth.start > 0) ? (optDepth.start <= depth) : (optDepth.start <= decGens);
-        this.setState({isLinkable});
-      }
+      const isLinkable = (optDepth.start > 0) ? (optDepth.start <= depth) : (optDepth.start <= decGens);
+      this.setState({isLinkable});
     }
   }