mizozobu 6 년 전
부모
커밋
0228246fdb
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/client/js/components/Admin/Export/ExportPage.jsx

+ 3 - 1
src/client/js/components/Admin/Export/ExportPage.jsx

@@ -27,13 +27,15 @@ class ExportPage extends React.Component {
 
   async componentDidMount() {
     // TODO: use apiv3.get
+    // eslint-disable-next-line no-unused-vars
     const [{ collections }, { zipFileStats }] = await Promise.all([
       this.props.appContainer.apiGet('/v3/mongo/collections', {}),
       this.props.appContainer.apiGet('/v3/export/status', {}),
     ]);
     // TODO toastSuccess, toastError
 
-    this.setState({ collections, zipFileStats });
+    this.setState({ collections: ['pages', 'revisions'], zipFileStats }); // FIXME
+    // this.setState({ collections, zipFileStats });
   }
 
   onZipFileStatAdd(newStat) {