mizozobu 6 ani în urmă
părinte
comite
0228246fdb
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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() {
   async componentDidMount() {
     // TODO: use apiv3.get
     // TODO: use apiv3.get
+    // eslint-disable-next-line no-unused-vars
     const [{ collections }, { zipFileStats }] = await Promise.all([
     const [{ collections }, { zipFileStats }] = await Promise.all([
       this.props.appContainer.apiGet('/v3/mongo/collections', {}),
       this.props.appContainer.apiGet('/v3/mongo/collections', {}),
       this.props.appContainer.apiGet('/v3/export/status', {}),
       this.props.appContainer.apiGet('/v3/export/status', {}),
     ]);
     ]);
     // TODO toastSuccess, toastError
     // TODO toastSuccess, toastError
 
 
-    this.setState({ collections, zipFileStats });
+    this.setState({ collections: ['pages', 'revisions'], zipFileStats }); // FIXME
+    // this.setState({ collections, zipFileStats });
   }
   }
 
 
   onZipFileStatAdd(newStat) {
   onZipFileStatAdd(newStat) {