Przeglądaj źródła

remove unnecessary logs

kaori-t 5 lat temu
rodzic
commit
e130d9fb5a

+ 0 - 1
src/client/js/components/Admin/ImportData/GrowiArchive/UploadForm.jsx

@@ -38,7 +38,6 @@ class UploadForm extends React.Component {
     }
     catch (err) {
       if (err[0].code === 'versions-are-not-met') {
-        console.log('エラーが出ました versions-are-not-met!!');
         this.props.onVersion(err[0].code);
       }
     }

+ 0 - 7
src/client/js/components/Admin/ImportData/GrowiArchiveSection.jsx

@@ -82,21 +82,15 @@ class GrowiArchiveSection extends React.Component {
 
 
   handleVersion(err) {
-    console.log(`isTheSameVersionA = ${this.state.isTheSameVersion}`);
-
     if (err === 'versions-are-not-met') {
       this.setState({
         isTheSameVersion: false,
       });
-      console.log(`isTheSameVersionB = ${this.state.isTheSameVersion}`);
     }
   }
 
   renderDefferentVersionAlert() {
     const { t } = this.props;
-    const { isTheSameVersion } = this.state;
-
-    console.log(`isTheSameVersionD =${isTheSameVersion}`);
     return (
       <div className="alert alert-warning mt-3">
         {t('admin:importer_management.growi_settings.errors.different_versions')}
@@ -111,7 +105,6 @@ class GrowiArchiveSection extends React.Component {
   render() {
     const { t } = this.props;
     const { isTheSameVersion } = this.state;
-    console.log(`isTheSameVersion XXX =${isTheSameVersion}`);
 
     return (
       <Fragment>