From a4c57580285f3d189c6c1b0ea15193717eccd004 Mon Sep 17 00:00:00 2001 From: Jesse Bye Date: Fri, 26 Feb 2021 11:47:46 -0800 Subject: [PATCH] Use '-'; add changeset --- .changeset/shaggy-spiders-shop.md | 5 +++++ .../sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/shaggy-spiders-shop.md 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={ + + } />