Selaa lähdekoodia

managed by state

ryohi15 5 vuotta sitten
vanhempi
sitoutus
f51661d706
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/client/js/components/StaffCredit/StaffCredit.jsx

+ 2 - 0
src/client/js/components/StaffCredit/StaffCredit.jsx

@@ -26,6 +26,7 @@ class StaffCredit extends React.Component {
     super(props);
     super(props);
     this.state = {
     this.state = {
       isShown: true,
       isShown: true,
+      gcContributors: {},
     };
     };
     this.deleteCredit = this.deleteCredit.bind(this);
     this.deleteCredit = this.deleteCredit.bind(this);
   }
   }
@@ -102,6 +103,7 @@ class StaffCredit extends React.Component {
     }, 10);
     }, 10);
 
 
     this.props.appContainer.apiv3Get('/growi-cloud/staff-credit').then((res) => {
     this.props.appContainer.apiv3Get('/growi-cloud/staff-credit').then((res) => {
+      this.setState({ gcContributors: res.data });
     });
     });
 
 
   }
   }