aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users
diff options
context:
space:
mode:
authorGrégoire Aubert <gregaubert@users.noreply.github.com>2017-03-31 16:50:34 +0200
committerGitHub <noreply@github.com>2017-03-31 16:50:34 +0200
commit77b57db4289a9ce9b9465ab608ed5aa49023be78 (patch)
tree45842770ea5a23076c9b2a9b85df207619eebdc8 /server/sonar-web/src/main/js/apps/users
parent0abc21b94ebf3ec8cedaecfe3b8eeb957832309d (diff)
downloadsonarqube-77b57db4289a9ce9b9465ab608ed5aa49023be78.tar.gz
sonarqube-77b57db4289a9ce9b9465ab608ed5aa49023be78.zip
Add format rule : order react component lifecycle methods (#1882)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users')
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/UsersSearch.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/components/UsersSearch.js b/server/sonar-web/src/main/js/apps/users/components/UsersSearch.js
index e450d51b4c1..8d336b0c44f 100644
--- a/server/sonar-web/src/main/js/apps/users/components/UsersSearch.js
+++ b/server/sonar-web/src/main/js/apps/users/components/UsersSearch.js
@@ -34,12 +34,13 @@ type State = {
export default class UsersSearch extends React.PureComponent {
props: Props;
- state: State = {
- query: ''
- };
+ state: State;
constructor(props: Props) {
super(props);
+ this.state = {
+ query: ''
+ };
this.handleSearch = debounce(this.handleSearch, 250);
}