diff options
Diffstat (limited to 'server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee')
-rw-r--r-- | server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee b/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee index 098e878aa45..2b0be2c80b3 100644 --- a/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee +++ b/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee @@ -91,8 +91,7 @@ define [ selected = @options.app.state.get 'selectedIndex' selectedIssue = @options.app.issues.at selected if selectedIssue.get('component') == @model.get('key') - selectedKey = selectedIssue.get 'key' - @scrollToIssue selectedKey + @scrollToLine selectedIssue.get('line') else @unbindShortcuts() @options.app.controller.showComponentViewer selectedIssue |