Explorar o código

FB by Itichizawasan

白石誠 %!s(int64=5) %!d(string=hai) anos
pai
achega
d949903908
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/client/js/components/PageTimeline.jsx

+ 3 - 3
src/client/js/components/PageTimeline.jsx

@@ -16,7 +16,7 @@ class PageTimeline extends React.Component {
     super(props);
 
     const { appContainer } = this.props;
-    this.updatePages = this.updatePages.bind(this);
+    this.showPages = this.showPages.bind(this);
     this.state = {
       isEnabled: appContainer.getConfig().isEnabledTimeline,
 
@@ -26,7 +26,7 @@ class PageTimeline extends React.Component {
 
   }
 
-  async updatePages() {
+  async showPages() {
     const { appContainer, pageContainer } = this.props;
     const { path } = pageContainer.state;
     const res = await appContainer.apiv3Get('/pages/list', { path });
@@ -43,7 +43,7 @@ class PageTimeline extends React.Component {
 
     // initialize GrowiRenderer
     this.growiRenderer = appContainer.getRenderer('timeline');
-    this.updatePages();
+    this.showPages();
   }
 
   render() {