Yuki Takei 9 лет назад
Родитель
Сommit
9ee033aac7

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

@@ -18,7 +18,7 @@ export class Page extends React.Component {
   }
 
   componentDidMount() {
-    // depth option
+    // process depth option
     const optDepth = this.props.lsxContext.getOptDepth();
     if (optDepth !== undefined) {
       const depth = this.props.depth;

+ 2 - 2
packages/growi-plugin-lsx/src/resource/js/util/LsxContext.js

@@ -105,9 +105,9 @@ export class LsxContext {
     let end;
 
     // has operator
-    if (match[2] != undefined) {
+    if (match[3] != undefined) {
       start = +match[1];
-      const operator = match[2]
+      const operator = match[3];
 
       // determine end
       if (operator === ':') {