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

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

@@ -47,10 +47,8 @@ export class Page extends React.Component {
         this.setState({isVisible});
       }
 
-      if (this.state.isExists) {
-        const isLinkable = (optDepth.start > 0) ? (optDepth.start <= depth) : (optDepth.start <= decGens);
-        this.setState({isLinkable});
-      }
+      const isLinkable = (optDepth.start > 0) ? (optDepth.start <= depth) : (optDepth.start <= decGens);
+      this.setState({isLinkable});
     }
   }