diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/tokens-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/users/tokens-view.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/tokens-view.js b/server/sonar-web/src/main/js/apps/users/tokens-view.js index f3277b1fea0..4dc0b77bf0b 100644 --- a/server/sonar-web/src/main/js/apps/users/tokens-view.js +++ b/server/sonar-web/src/main/js/apps/users/tokens-view.js @@ -52,8 +52,8 @@ export default Modal.extend({ onRevokeTokenFormSubmit(e) { e.preventDefault(); - let tokenName = $(e.currentTarget).data('token'), - token = _.findWhere(this.tokens, { name: `${tokenName}` }); + let tokenName = $(e.currentTarget).data('token'); + let token = _.findWhere(this.tokens, { name: `${tokenName}` }); if (token) { if (token.deleting) { revokeToken(this.model.id, tokenName).then(this.requestTokens.bind(this)); |