Преглед изворни кода

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 {