diff --git a/.changeset/shaggy-spiders-shop.md b/.changeset/shaggy-spiders-shop.md new file mode 100644 index 0000000000..ae500f1e81 --- /dev/null +++ b/.changeset/shaggy-spiders-shop.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-sonarqube': patch +--- + +Display '-' instead of 'undefined' if no code coverage is reported. diff --git a/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx b/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx index 12ed5b3bf4..14b8ae1af6 100644 --- a/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx +++ b/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx @@ -232,7 +232,15 @@ export const SonarQubeCard = ({ link={value.getComponentMeasuresUrl('COVERAGE')} title="Coverage" leftSlot={} - rightSlot={} + rightSlot={ + + } />