diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-30 14:00:07 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-11-30 14:00:17 +0100 |
commit | 4ce3f48d8beb06e4a4862d16d3a6b8d0d0ebf5c0 (patch) | |
tree | 61558db1c8ae6deffae297a5251f016ec58c0632 /server/sonar-web/src/main/js/apps/overview/components/AppContainer.js | |
parent | 3c646719ac84403fab2ed7060db25dedcf29eb33 (diff) | |
download | sonarqube-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.js | 5 |
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; } |