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 a8f0cfe491..e4fbc64479 100644 --- a/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx +++ b/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx @@ -232,7 +232,9 @@ export const SonarQubeCard = ({ link={value.getComponentMeasuresUrl('COVERAGE')} title="Coverage" leftSlot={} - rightSlot={} + rightSlot={ + + } />