diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-11 13:37:04 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-11 13:37:04 +0100 |
commit | 0c3a16f09f18b8ecf11c4ca7d37842017f94ffe0 (patch) | |
tree | 030db3e88e3d3830cd516a0c2640218e72ff26c2 /server | |
parent | aa6cf6cc2a7d66a63ab626ce04cc0da9c10c8dae (diff) | |
download | sonarqube-0c3a16f09f18b8ecf11c4ca7d37842017f94ffe0.tar.gz sonarqube-0c3a16f09f18b8ecf11c4ca7d37842017f94ffe0.zip |
fix bug when file header is not displated for only issue on the issues page
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/workspace-list-view.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/workspace-list-view.js b/server/sonar-web/src/main/js/apps/issues/workspace-list-view.js index 45efbf8dc0d..027b1eaebe3 100644 --- a/server/sonar-web/src/main/js/apps/issues/workspace-list-view.js +++ b/server/sonar-web/src/main/js/apps/issues/workspace-list-view.js @@ -85,9 +85,9 @@ export default WorkspaceListView.extend({ var $container = this.getChildViewContainer(compositeView), model = this.collection.at(index); if (model != null) { - var prev = this.collection.at(index - 1), - putComponent = prev == null; - if (prev != null) { + var prev = index > 0 && this.collection.at(index - 1), + putComponent = !prev; + if (prev) { var fullComponent = [model.get('project'), model.get('component')].join(' '), fullPrevComponent = [prev.get('project'), prev.get('component')].join(' '); if (fullComponent !== fullPrevComponent) { |