Sfoglia il codice sorgente

fix evaluation for optDepth

Yuki Takei 3 anni fa
parent
commit
a03e5b537c

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

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