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

+ 0 - 1
packages/growi-plugin-lsx/src/resource/js/components/Lsx.jsx

@@ -146,7 +146,6 @@ export class Lsx extends React.Component {
   getParentPath(path) {
     const parent = urlgrey(path).parent();
     return decodeURIComponent(this.addSlashOfEnd(parent.path()));
-
   }
 
   render() {

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

@@ -10,7 +10,7 @@ export class PageNode {
   }
 
   /**
-   * return generations num of decendants
+   * calculate generations number of decendants
    *
    * ex:
    *  /foo          -2

+ 1 - 1
packages/growi-plugin-lsx/src/resource/js/util/Interceptor/LsxPostRenderInterceptor.js

@@ -46,7 +46,7 @@ export class LsxPostRenderInterceptor extends BasicInterceptor {
         // check cache exists
         const cacheKey = LsxCacheHelper.generateCacheKeyFromContext(lsxContext);
         const lsxStateCache = LsxCacheHelper.getStateCache(cacheKey);
-        if (lsxStateCache) {
+        if (lsxStateCache !== undefined) {
           // render with cache
           this.renderReactDOM(lsxContext, lsxStateCache, elem);
         }