白石誠 5 лет назад
Родитель
Сommit
3f34baf239
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/client/js/components/PageTimeline.jsx

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

@@ -17,13 +17,12 @@ class PageTimeline extends React.Component {
     super(props);
     this.showPages = this.showPages.bind(this);
     this.handlePage = this.handlePage.bind(this);
+    const { appContainer } = this.props;
     this.state = {
       activePage: 1,
       totalPages: 0,
       limit: appContainer.getConfig().recentCreatedLimit,
-      isEnabled: appContainer.getConfig().isEnabledTimeline,
-      // TODO: remove after when timeline is implemented with React and inject data with props
-      pages: this.props.pages,
+      pages: [],
     };
 
   }