aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/components/AppContainer.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-11-30 14:00:07 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-11-30 14:00:17 +0100
commit4ce3f48d8beb06e4a4862d16d3a6b8d0d0ebf5c0 (patch)
tree61558db1c8ae6deffae297a5251f016ec58c0632 /server/sonar-web/src/main/js/apps/overview/components/AppContainer.js
parent3c646719ac84403fab2ed7060db25dedcf29eb33 (diff)
downloadsonarqube-4ce3f48d8beb06e4a4862d16d3a6b8d0d0ebf5c0.tar.gz
sonarqube-4ce3f48d8beb06e4a4862d16d3a6b8d0d0ebf5c0.zip
fix displaying a source code of a file after search
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/components/AppContainer.js')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/AppContainer.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/components/AppContainer.js b/server/sonar-web/src/main/js/apps/overview/components/AppContainer.js
index 85d09db946d..0e7bde7cdbd 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/AppContainer.js
+++ b/server/sonar-web/src/main/js/apps/overview/components/AppContainer.js
@@ -30,6 +30,11 @@ export default class AppContainer extends React.Component {
}
render () {
+ // workaround for the case when a file is displayed
+ if (window.sonarqube.file) {
+ return null;
+ }
+
if (!this.state.component) {
return null;
}