Parcourir la source

comment and remove unnecessary lines of code

mizozobu il y a 6 ans
Parent
commit
e660d242d1

+ 1 - 0
src/client/js/components/Admin/Import/GrowiZipImportForm.jsx

@@ -101,6 +101,7 @@ class GrowiImportForm extends React.Component {
                         <tr>
                         <tr>
                           <td className="text-muted" colSpan="3">
                           <td className="text-muted" colSpan="3">
                             TBD: define how to import {collectionName}
                             TBD: define how to import {collectionName}
+                            {/* TODO: create a component for each collection to modify this.state.schema */}
                           </td>
                           </td>
                         </tr>
                         </tr>
                       )}
                       )}

+ 1 - 4
src/client/js/components/Admin/Import/GrowiZipImportSection.jsx

@@ -13,14 +13,11 @@ class GrowiZipImportSection extends React.Component {
   constructor(props) {
   constructor(props) {
     super(props);
     super(props);
 
 
-    this.initialState = {
-      meta: {},
+    this.state = {
       fileName: '',
       fileName: '',
       fileStats: [],
       fileStats: [],
     };
     };
 
 
-    this.state = this.initialState;
-
     this.inputRef = React.createRef();
     this.inputRef = React.createRef();
 
 
     this.handleUpload = this.handleUpload.bind(this);
     this.handleUpload = this.handleUpload.bind(this);