aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/component-viewer/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/component-viewer/main.js')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/component-viewer/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/component-viewer/main.js b/server/sonar-web/src/main/js/apps/issues/component-viewer/main.js
index a702c4a4d7f..f138a860d30 100644
--- a/server/sonar-web/src/main/js/apps/issues/component-viewer/main.js
+++ b/server/sonar-web/src/main/js/apps/issues/component-viewer/main.js
@@ -109,8 +109,8 @@ define([
selectIssue: function (e) {
var key = $(e.currentTarget).data('issue-key'),
- issue = this.issues.find(function (issue) {
- return issue.get('key') === key;
+ issue = this.issues.find(function (model) {
+ return model.get('key') === key;
}),
index = this.options.app.list.indexOf(issue);
return this.options.app.state.set({ selectedIndex: index });