From 2d6875030a5b34042d774eccbf6b970235318844 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 14 Jul 2016 14:56:29 +0200 Subject: [PATCH] fix display of breadcrumbs whem measure has no domain --- .../component-measures/details/MeasureDetails.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetails.js b/server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetails.js index dcdeb048921..35d400d3e4c 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetails.js +++ b/server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetails.js @@ -76,12 +76,16 @@ export default class MeasureDetails extends React.Component { className="text-muted"> {translate('component_measures.all_measures')} - {' / '} - - {translateWithParameters('component_measures.domain_measures', metric.domain)} - + {!!metric.domain && ( + + {' / '} + + {translateWithParameters('component_measures.domain_measures', metric.domain)} + + + )}