소스 검색

fix evaluation for optDepth

Yuki Takei 3 년 전
부모
커밋
a03e5b537c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/plugin-lsx/src/components/LsxPageList/LsxPage.jsx

+ 1 - 1
packages/plugin-lsx/src/components/LsxPageList/LsxPage.jsx

@@ -33,7 +33,7 @@ export class LsxPage extends React.Component {
 
     // process depth option
     const optDepth = this.props.lsxContext.getOptDepth();
-    if (optDepth === undefined) {
+    if (optDepth == null) {
       this.setState({ isLinkable: true });
     }
     else {