aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-07-20 12:07:59 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-07-20 13:22:02 +0200
commitdeb971fda70db26fc00932db6cb0cfdad95d3299 (patch)
tree2c0c396621f8a50de3110958dc587ea61747cfd4
parentf7ee2c8e215706399ddfac74760b53f8f139c5a6 (diff)
downloadsonarqube-deb971fda70db26fc00932db6cb0cfdad95d3299.tar.gz
sonarqube-deb971fda70db26fc00932db6cb0cfdad95d3299.zip
do not display 0 on overview page when no profiles
-rw-r--r--server/sonar-web/src/main/js/apps/overview/meta/Meta.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/meta/Meta.js b/server/sonar-web/src/main/js/apps/overview/meta/Meta.js
index 70d5a4d6be0..34fd17dc77a 100644
--- a/server/sonar-web/src/main/js/apps/overview/meta/Meta.js
+++ b/server/sonar-web/src/main/js/apps/overview/meta/Meta.js
@@ -34,7 +34,7 @@ const Meta = ({ component }) => {
const hasDescription = !!description;
const hasLinks = Array.isArray(links) && !!links.length;
- const hasQualityProfiles = Array.isArray(profiles) && profiles.length;
+ const hasQualityProfiles = Array.isArray(profiles) && profiles.length > 0;
const hasQualityGate = !!gate;
const shouldShowQualityProfiles = !isView && !isDeveloper && hasQualityProfiles;