Przeglądaj źródła

fix variable name

ryohi15 5 lat temu
rodzic
commit
6e5a3a64c3

+ 3 - 3
src/client/js/components/StaffCredit/StaffCredit.jsx

@@ -26,7 +26,7 @@ class StaffCredit extends React.Component {
     super(props);
     super(props);
     this.state = {
     this.state = {
       isShown: true,
       isShown: true,
-      gcContributors: null,
+      contributors: null,
     };
     };
     this.deleteCredit = this.deleteCredit.bind(this);
     this.deleteCredit = this.deleteCredit.bind(this);
   }
   }
@@ -60,7 +60,7 @@ class StaffCredit extends React.Component {
 
 
   renderContributors() {
   renderContributors() {
     if (this.state.isShown) {
     if (this.state.isShown) {
-      if (this.state.gcContributors != null) {
+      if (this.state.contributors != null) {
         // TODO: merge gcContributors to Contributors
         // TODO: merge gcContributors to Contributors
         // refs: https://youtrack.weseek.co.jp/issue/GW-4573
         // refs: https://youtrack.weseek.co.jp/issue/GW-4573
       }
       }
@@ -107,7 +107,7 @@ class StaffCredit extends React.Component {
     }, 10);
     }, 10);
 
 
     this.props.appContainer.apiv3Get('/staffs').then((res) => {
     this.props.appContainer.apiv3Get('/staffs').then((res) => {
-      this.setState({ gcContributors: res.data });
+      this.setState({ contributors: res.data });
     });
     });
 
 
   }
   }