aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users/UsersApp.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/UsersApp.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/users/UsersApp.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/UsersApp.tsx b/server/sonar-web/src/main/js/apps/users/UsersApp.tsx
index 136a91a1394..d09374d4dd8 100644
--- a/server/sonar-web/src/main/js/apps/users/UsersApp.tsx
+++ b/server/sonar-web/src/main/js/apps/users/UsersApp.tsx
@@ -94,10 +94,10 @@ export class UsersApp extends React.PureComponent<Props, State> {
this.setState({ loading: true });
searchUsers({
p: paging.pageIndex + 1,
- q: parseQuery(this.props.location.query).search
+ q: parseQuery(this.props.location.query).search,
}).then(({ paging, users }) => {
if (this.mounted) {
- this.setState(state => ({ loading: false, users: [...state.users, ...users], paging }));
+ this.setState((state) => ({ loading: false, users: [...state.users, ...users], paging }));
}
}, this.finishLoading);
}
@@ -109,8 +109,8 @@ export class UsersApp extends React.PureComponent<Props, State> {
};
updateTokensCount = (login: string, tokensCount: number) => {
- this.setState(state => ({
- users: state.users.map(user => (user.login === login ? { ...user, tokensCount } : user))
+ this.setState((state) => ({
+ users: state.users.map((user) => (user.login === login ? { ...user, tokensCount } : user)),
}));
};