diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-07-20 12:07:59 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-07-20 13:22:02 +0200 |
commit | deb971fda70db26fc00932db6cb0cfdad95d3299 (patch) | |
tree | 2c0c396621f8a50de3110958dc587ea61747cfd4 | |
parent | f7ee2c8e215706399ddfac74760b53f8f139c5a6 (diff) | |
download | sonarqube-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.js | 2 |
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; |