]> source.dussan.org Git - sonarqube.git/commitdiff
display module name on measures page
authorStas Vilchik <vilchiks@gmail.com>
Tue, 10 May 2016 11:55:32 +0000 (13:55 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 10 May 2016 11:55:32 +0000 (13:55 +0200)
server/sonar-web/src/main/js/apps/component-measures/details/drilldown/ComponentCell.js

index 1fc9ecab2c2858bedcd5ac5925c499ca615e2474..8ff7b1d04ee2e97fb354b08f5d4d2a238460306f 100644 (file)
@@ -40,10 +40,10 @@ const ComponentCell = ({ component, isSelected, onClick }) => {
   };
 
   let head = '';
-  let tail = component.path || component.name;
+  let tail = component.name;
 
   if (['DIR', 'FIL', 'CLA'].includes(component.qualifier)) {
-    const parts = splitPath(tail);
+    const parts = splitPath(component.path);
     head = parts.head;
     tail = parts.tail;
   }