Przeglądaj źródła

managed by state

ryohi15 5 lat temu
rodzic
commit
f51661d706

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

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