Explorar o código

fix evaluation for optDepth

Yuki Takei %!s(int64=3) %!d(string=hai) anos
pai
achega
a03e5b537c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {